Commit f4b71bfd authored by 邓莹莹's avatar 邓莹莹

commit named all_backend_api

parent ba96e0ff
......@@ -2,7 +2,7 @@ import path_setting
from in_common.base_request import BaseRequest
class send_reqest(BaseRequest):
class account_request(BaseRequest):
def __init__(self):
self.data = self.api_load(path_setting.APYAML_CONFIG)
......@@ -16,4 +16,4 @@ class send_reqest(BaseRequest):
if __name__ == '__main__':
print(send_reqest().login_vfc("beijing", "+8612345678912", 1234, "", ""))
\ No newline at end of file
print(account_request().login_vfc("beijing", "+8612345678912", 1234, "", ""))
\ No newline at end of file
......@@ -8,6 +8,7 @@ jsonpath==0.82
packaging==20.9
pluggy==0.13.1
py==1.10.0
pyparsing==2.4.7
pytest==6.2.2
PyYAML==5.4.1
......
......@@ -3,7 +3,7 @@ import pytest
from ids_list import get_ids
import path_setting
from in_common.base_request import BaseRequest
from all_backend_api.account_request import send_reqest
from all_backend_api.account_request import account_request
class TestLoginVfc:
......@@ -13,7 +13,7 @@ class TestLoginVfc:
@pytest.mark.parametrize("param",loginvfc_data,ids=loginvfc_case)
def test_login_vfc(self,param):
print(param["vfc_code"])
r = send_reqest().login_vfc(param["current_city_id"], param["phone_num"], param["vfc_code"])
r = account_request().login_vfc(param["current_city_id"], param["phone_num"], param["vfc_code"])
if r["error"] == 0:
assert r["data"]["account_phone"] == param["assert"]
if r["error"] == 1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment