Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
on_line_product
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
邓莹莹
on_line_product
Commits
3a86cbf2
Commit
3a86cbf2
authored
Jul 27, 2021
by
邓莹莹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交打印日志
parent
caaae8f5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
test_order_process.py
test_backend_case/package_process_case/test_order_process.py
+5
-0
No files found.
test_backend_case/package_process_case/test_order_process.py
View file @
3a86cbf2
...
...
@@ -15,11 +15,16 @@ class TestOrderProcess:
@pytest.mark.parametrize
(
"param"
,
order_process_data
,
ids
=
order_process_case
)
def
test_order_process
(
self
,
param
):
preview_v1
=
settlement_request
()
.
preview_v1
(
param
[
"current_city_id"
],
param
[
"service_item_id"
],
param
[
"number"
],
param
[
"use_platform_coupon"
],
param
[
"use_doctor_coupon"
],
param
[
"use_coupon_grey"
],
param
[
"is_create_groupbuy"
])
print
(
"preview_v1返回结果"
,
preview_v1
)
actual_pay
=
preview_v1
[
"data"
][
"pre_payment_total_price"
]
print
(
"actual_pay返回结果"
,
actual_pay
)
payment_final_price
=
preview_v1
[
"data"
][
"payment_final_price"
]
print
(
"payment_final_price返回结果"
,
payment_final_price
)
number
=
preview_v1
[
"data"
][
"services"
][
0
][
"number"
]
print
(
"number返回结果"
,
number
)
phone
=
preview_v1
[
"data"
][
"phone"
]
pay_v1
=
settlement_request
()
.
pay_v1
(
actual_pay
,
payment_final_price
,
0
,
0
)
print
(
"pay_v1返回结果"
,
pay_v1
)
use_point
=
0
is_doctor_see
=
0
is_create_groupbuy
=
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