Commit aa0c5a9e authored by Leo P. Singer's avatar Leo P. Singer
Browse files

Fix flask unit test

parent fb619b98
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment