mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 05:50:36 +00:00
test: non-freqai tests should run without torch installed
This commit is contained in:
@@ -521,7 +521,11 @@ def patch_torch_initlogs(mocker) -> None:
|
||||
mocked_module = types.ModuleType(module_name)
|
||||
sys.modules[module_name] = mocked_module
|
||||
else:
|
||||
mocker.patch("torch._logging._init_logs")
|
||||
try:
|
||||
mocker.patch("torch._logging._init_logs")
|
||||
except ModuleNotFoundError:
|
||||
# Allow running limited tests to run without freqAI dependencies
|
||||
pass
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
|
||||
Reference in New Issue
Block a user