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
26f75551
Commit
26f75551
authored
Apr 16, 2021
by
林颖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
61849628
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
test_diary_data.py
test_backend_case/account_case/test_diary_data.py
+2
-2
diary_data.yaml
test_backend_data/account_data/diary_data.yaml
+2
-2
No files found.
test_backend_case/account_case/test_diary_data.py
View file @
26f75551
...
...
@@ -12,9 +12,9 @@ class TestDIARYDATA:
@pytest.mark.parametrize
(
"param"
,
diary_data_data
,
ids
=
diary_data_case
)
def
test_diary_data
(
self
,
param
):
print
(
2
)
#
print(2)
r
=
diary_data_reqest
()
.
diary_data
(
param
[
"current_city_id"
],
param
[
"diary_referrer"
],
param
[
"sort"
],
param
[
"count"
],
param
[
"start_num"
])
print
(
1
)
#
print(1)
if
r
[
"error"
]
==
0
:
assert
r
[
"error"
]
==
param
[
"assert"
]
# assert(r[""])
...
...
test_backend_data/account_data/diary_data.yaml
View file @
26f75551
...
...
@@ -10,10 +10,10 @@ diary_data:
assert
:
0
-
case
:
"
接口
失败
case"
case
:
"
接口
传参数失败,但不报错
case"
current_city_id
:
"
beijing"
diary_referrer
:
"
my_diary"
sort
:
0
count
:
8
start_num
:
2
assert
:
1
assert
:
0
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