pull/10746/head
Meng Xiangzhuo 2 years ago
parent 48a8d7de1c
commit 9c28a6ff4a
No known key found for this signature in database
GPG Key ID: 7A1735AB4A5A3594

@ -0,0 +1,14 @@
import subprocess
import time
MAXIMUM_STARTUP_TIME = 0.5
def test_startup_time():
start = time.time()
subprocess.run(["freqtrade", "-h"])
elapsed = time.time() - start
assert (
elapsed < MAXIMUM_STARTUP_TIME
), "The startup time is too long, try to use lazy import in the command entry function"
Loading…
Cancel
Save