示例#1
0
def test_profile_update():
    body = {
        "name": "Test",
        "sex": 1,
        "email": "*****@*****.**",
        "birthDate": "2000-02-02"
    }
    assert Mp(user).profile_update(body=body).status_code == 200
示例#2
0
def test_offer_set_offerSetId_in_region():
    assert Mp(user).offer_set_offerSetId_in_region(
        offerSetId=offer_set, regionId=region).status_code == 200
示例#3
0
def test_offer_details():
    assert Mp(user).offer_details(offerId=offer).status_code == 200
示例#4
0
def test_offers_by_region():
    params = {}
    assert Mp(user).offers_by_region(regionId=region,
                                     params=params).status_code == 200
示例#5
0
def test_regions():
    assert Mp(user).regions().status_code == 200
示例#6
0
def test_profile_cashback():
    assert Mp(user).profile_cashback().status_code == 200
示例#7
0
def test_auth_logout():
    assert Mp(user).auth_logout().status_code == 200
示例#8
0
def test_profile_confirm_policy():
    assert Mp('79993814599').profile_confirm_policy().status_code == 200
示例#9
0
def test_profile():
    assert Mp(user).profile().status_code == 200
示例#10
0
def test_auth_policy():
    assert Mp(user).auth_policy().status_code == 200
示例#11
0
def test_verify():
    assert Mp(user).verify().status_code == 200
示例#12
0
def test_region_find_by_coordinates():
    lt = '14.234'
    ln = '15,342'
    assert Mp(user).region_find_by_coordinates(ln=ln, lt=lt).status_code == 200
示例#13
0
def test_profile_change_phone_send_code():
    assert Mp(user).profile_change_phone_send_code(
        phone=change_phone).status_code == 200
示例#14
0
def test_profile_cashback_operations():
    params = {}
    assert Mp(user).profile_cashback_operations(
        params=params).status_code == 200
示例#15
0
def test_top_offer_categories_by_region():
    assert Mp(user).top_offer_categories_by_region(
        regionId=region).status_code == 200
示例#16
0
def test_featured_companies_by_region():
    assert Mp(user).featured_companies_by_region(region).status_code == 200
示例#17
0
def test_offers_map_by_region():
    assert Mp(user).offers_map_by_region(regionId=region).status_code == 200
示例#18
0
def test_companies_by_region():
    params = {}
    assert Mp(user).companies_by_region(params=params,
                                        regionId=region).status_code == 200
示例#19
0
def test_auth_refresh_token():
    assert Mp(user).auth_refresh_token().status_code == 200
示例#20
0
def test_company_details():
    assert Mp(user).company_details(companyId=company).status_code == 200
示例#21
0
def test_profile_update_region():
    assert Mp(user).profile_update_region(regionId=region).status_code == 200
示例#22
0
def test_profile_card_binding_info():
    assert Mp(user).profile_card_binding_info().status_code == 200