Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
willdesk_apiauto
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
29
Issues
29
List
Boards
Labels
Service Desk
Milestones
Merge Requests
29
Merge Requests
29
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
桦生 詹
willdesk_apiauto
Commits
57cb8228
Commit
57cb8228
authored
Mar 08, 2024
by
zhanhuasheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allure报告会把整个进程卡死,暂不生成
parent
3d7f72c3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
conftest.py
conftest.py
+0
-3
main.py
main.py
+5
-4
No files found.
conftest.py
View file @
57cb8228
import
asyncio
from
Utils.sql_handler
import
test_env_conn
import
pytest
import
requests
import
time
...
...
@@ -110,9 +109,7 @@ def call_fixture():
willdesk_login
()
customer_login
()
yield
test_env_conn
.
close_db
()
loop
=
websocket_handler
.
loop
loop
.
run_until_complete
(
close_ws
())
loop
.
stop
()
loop
.
close
()
main.py
View file @
57cb8228
import
pytest
import
asyncio
import
os
from
Utils.sql_handler
import
test_env_conn
from
Utils
import
websocket_handler
...
...
@@ -7,11 +6,13 @@ from Utils import websocket_handler
if
__name__
==
'__main__'
:
try
:
pytest
.
main
([
'-vs'
,
'TestCase/inbox'
,
f
'--alluredir=./allureReports'
,
'--clean-alluredir'
])
os
.
system
(
f
'allure generate ./allureReports -c'
)
# os.system('allure open ./allureReports')
# result = subprocess.run(['allure', 'generate', './allureReports', '-o', './allure-report', '--clean'])
# os.system('allure generate ./allureReports -c -o ./allureOutput')
finally
:
print
(
'finally'
)
# test_env_conn.close_db()
test_env_conn
.
close_db
()
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