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
587eb163
Commit
587eb163
authored
May 27, 2021
by
Cornelius Edward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huida
parent
1c48469c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
__init__.py
test_backend_case/answer_case/__init__.py
+0
-0
test_detail.py
test_backend_case/answer_case/test_detail.py
+22
-0
No files found.
test_backend_case/answer_case/__init__.py
0 → 100644
View file @
587eb163
test_backend_case/answer_case/test_detail.py
0 → 100644
View file @
587eb163
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
account_request
class
TestLoginVfc
:
data
=
BaseRequest
()
.
api_load
(
path_setting
.
LOGIN_VFC
)
loginvfc_case
,
loginvfc_data
=
get_ids
(
data
,
"login_vfc"
)
@pytest.mark.parametrize
(
"param"
,
loginvfc_data
,
ids
=
loginvfc_case
)
def
test_login_vfc
(
self
,
param
):
print
(
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
:
assert
r
[
"message"
]
==
param
[
"assert"
]
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