parent
11b20d6932
commit
fedbb5c0c4
2
setup.py
2
setup.py
@ -19,7 +19,7 @@ if readme_file.is_file():
|
|||||||
readme_long = (Path(__file__).parent / "README.md").read_text()
|
readme_long = (Path(__file__).parent / "README.md").read_text()
|
||||||
|
|
||||||
# Requirements used for submodules
|
# Requirements used for submodules
|
||||||
api = ['flask', 'flask-jwt-extended', 'flask-cors']
|
api = ['fastapi', 'uvicorn', 'pyjwt', 'aiofiles']
|
||||||
plot = ['plotly>=4.0']
|
plot = ['plotly>=4.0']
|
||||||
hyperopt = [
|
hyperopt = [
|
||||||
'scipy',
|
'scipy',
|
||||||
|
@ -295,7 +295,7 @@ def test_api_run(default_conf, mocker, caplog):
|
|||||||
"Please make sure that this is intentional!", caplog)
|
"Please make sure that this is intentional!", caplog)
|
||||||
assert log_has_re("SECURITY WARNING - `jwt_secret_key` seems to be default.*", caplog)
|
assert log_has_re("SECURITY WARNING - `jwt_secret_key` seems to be default.*", caplog)
|
||||||
|
|
||||||
# Test crashing flask
|
# Test crashing API server
|
||||||
caplog.clear()
|
caplog.clear()
|
||||||
mocker.patch('freqtrade.rpc.api_server.webserver.UvicornServer',
|
mocker.patch('freqtrade.rpc.api_server.webserver.UvicornServer',
|
||||||
MagicMock(side_effect=Exception))
|
MagicMock(side_effect=Exception))
|
||||||
|
Loading…
Reference in New Issue
Block a user