Skip to content

Commit

Permalink
adding pytest.engine to non local tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joda9 committed Sep 18, 2024
1 parent d7c8c68 commit 5ea3687
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5ea3687

Please sign in to comment.