Skip to content

Commit

Permalink
Fixtures: Make daemon_client function scoped
Browse files Browse the repository at this point in the history
This is more expensive than the original idea of having it session
scoped since now the daemon is stopped after each function usage,
however, not stopping the daemon can cause tests to fail if previous
tests leave it in an inconsistent state.
  • Loading branch information
sphuber committed Oct 27, 2022
1 parent 1e1fdd9 commit 61f257a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiida/manage/tests/pytest_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def get_code(entry_point, executable, computer=aiida_localhost, label=None, prep
return get_code


@pytest.fixture(scope='session')
@pytest.fixture()
def daemon_client(aiida_profile):
"""Return a daemon client for the configured test profile for the test session.
Expand Down

0 comments on commit 61f257a

Please sign in to comment.