From 5ea36879619d101c823f73c1b9a0dac011702e24 Mon Sep 17 00:00:00 2001 From: joda9 Date: Wed, 18 Sep 2024 11:12:13 +0200 Subject: [PATCH] adding pytest.engine to non local tests --- tests/conftest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 7bb8a32f..a3898969 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -33,11 +33,13 @@ def pytest_configure(config): "/home/jonas/.ssh/toetp.configuration.yaml", ) + pytest.engine = engine() + config.addinivalue_line("markers", "slow: mark test as slow to run") config.addinivalue_line("markers", "local: mark test as local to run") if config.getoption("--runlocal"): - pytest.engine = engine(path=pytest.egon_data_config_yml, ssh=False) + pytest.engine_local = engine(path=pytest.egon_data_config_yml, ssh=False) def pytest_addoption(parser):