Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
test62
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wj
test62
Commits
207fb21d
Commit
207fb21d
authored
Sep 09, 2024
by
wj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update request_method.py
parent
0bb23dcf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
Test_3/request_method/request_method.py
+1
-2
No files found.
Test_3/request_method/request_method.py
View file @
207fb21d
...
@@ -24,8 +24,7 @@ class RequestMethod:
...
@@ -24,8 +24,7 @@ class RequestMethod:
# 创建Session对象
# 创建Session对象
self
.
bpm_session
=
requests
.
sessions
.
Session
()
self
.
bpm_session
=
requests
.
sessions
.
Session
()
# 更新token
# 更新token
self
.
bpm_session
.
headers
[
"Authorization"
]
=
f
'Bearer {
self
.
bpm_session
.
headers
[
"Authorization"
]
=
f
'Bearer {self.bpm_session.request(method="post", url=login_url, json=login_data).json().get("token")}'
self.bpm_session.request(method="post", url=login_url, json=login_data).json().get("token")}'
def
request_all
(
self
,
case_url
,
case_method
,
case_mime
,
case_data
):
def
request_all
(
self
,
case_url
,
case_method
,
case_mime
,
case_data
):
# 封装公共的请求方法,根据不同的用例媒体类型使用不同的关键字传参
# 封装公共的请求方法,根据不同的用例媒体类型使用不同的关键字传参
...
...
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