Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
emfollow
gwcelery
Commits
aa0c5a9e
Commit
aa0c5a9e
authored
Sep 02, 2021
by
Leo P. Singer
Browse files
Fix flask unit test
parent
fb619b98
Changes
1
Show whitespace changes
Inline
Side-by-side
gwcelery/tests/test_tools_flask.py
View file @
aa0c5a9e
...
...
@@ -13,10 +13,8 @@ def test_flask_run(monkeypatch):
monkeypatch
.
setenv
(
'FLASK_RUN_PORT'
,
'5556'
)
monkeypatch
.
setattr
(
celery_app
.
log
,
'setup'
,
Mock
())
with
pytest
.
raises
(
SystemExit
)
as
excinfo
:
main
([
'gwcelery'
,
'flask'
,
'run'
,
'--eager-loading'
])
assert
excinfo
.
value
.
code
==
0
mock_run_simple
.
assert_called_once
()
args
,
kwargs
=
mock_run_simple
.
call_args
host
,
port
,
loader
=
args
...
...
Write
Preview
Supports
Markdown
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