Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
backend_auto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘婷婷
backend_auto
Commits
f4b71bfd
Commit
f4b71bfd
authored
Apr 15, 2021
by
邓莹莹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit named all_backend_api
parent
ba96e0ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
account_request.py
all_backend_api/account_request.py
+3
-3
requirements.txt
requirements.txt
+1
-0
test_login_vfc.py
test_backend_case/account_case/test_login_vfc.py
+2
-2
No files found.
all_backend_api/account_request.py
View file @
f4b71bfd
...
@@ -2,7 +2,7 @@ import path_setting
...
@@ -2,7 +2,7 @@ import path_setting
from
in_common.base_request
import
BaseRequest
from
in_common.base_request
import
BaseRequest
class
send_req
est
(
BaseRequest
):
class
account_requ
est
(
BaseRequest
):
def
__init__
(
self
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
APYAML_CONFIG
)
self
.
data
=
self
.
api_load
(
path_setting
.
APYAML_CONFIG
)
...
@@ -16,4 +16,4 @@ class send_reqest(BaseRequest):
...
@@ -16,4 +16,4 @@ class send_reqest(BaseRequest):
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
print
(
send_reqest
()
.
login_vfc
(
"beijing"
,
"+8612345678912"
,
1234
,
""
,
""
))
print
(
account_request
()
.
login_vfc
(
"beijing"
,
"+8612345678912"
,
1234
,
""
,
""
))
\ No newline at end of file
\ No newline at end of file
requirements.txt
View file @
f4b71bfd
...
@@ -8,6 +8,7 @@ jsonpath==0.82
...
@@ -8,6 +8,7 @@ jsonpath==0.82
packaging
==20.9
packaging
==20.9
pluggy
==0.13.1
pluggy
==0.13.1
py
==1.10.0
py
==1.10.0
pyparsing
==2.4.7
pyparsing
==2.4.7
pytest
==6.2.2
pytest
==6.2.2
PyYAML
==5.4.1
PyYAML
==5.4.1
...
...
test_backend_case/account_case/test_login_vfc.py
View file @
f4b71bfd
...
@@ -3,7 +3,7 @@ import pytest
...
@@ -3,7 +3,7 @@ import pytest
from
ids_list
import
get_ids
from
ids_list
import
get_ids
import
path_setting
import
path_setting
from
in_common.base_request
import
BaseRequest
from
in_common.base_request
import
BaseRequest
from
all_backend_api.account_request
import
send_req
est
from
all_backend_api.account_request
import
account_requ
est
class
TestLoginVfc
:
class
TestLoginVfc
:
...
@@ -13,7 +13,7 @@ class TestLoginVfc:
...
@@ -13,7 +13,7 @@ class TestLoginVfc:
@pytest.mark.parametrize
(
"param"
,
loginvfc_data
,
ids
=
loginvfc_case
)
@pytest.mark.parametrize
(
"param"
,
loginvfc_data
,
ids
=
loginvfc_case
)
def
test_login_vfc
(
self
,
param
):
def
test_login_vfc
(
self
,
param
):
print
(
param
[
"vfc_code"
])
print
(
param
[
"vfc_code"
])
r
=
send_req
est
()
.
login_vfc
(
param
[
"current_city_id"
],
param
[
"phone_num"
],
param
[
"vfc_code"
])
r
=
account_requ
est
()
.
login_vfc
(
param
[
"current_city_id"
],
param
[
"phone_num"
],
param
[
"vfc_code"
])
if
r
[
"error"
]
==
0
:
if
r
[
"error"
]
==
0
:
assert
r
[
"data"
][
"account_phone"
]
==
param
[
"assert"
]
assert
r
[
"data"
][
"account_phone"
]
==
param
[
"assert"
]
if
r
[
"error"
]
==
1
:
if
r
[
"error"
]
==
1
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment