Skip to content

Commit

Permalink
Revert pytest fixture scoping
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Sep 10, 2024
1 parent 4062fdf commit e311fb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def build_and_launch_container(
print(f" x Failed to stop container: {exc}")


@pytest.fixture(scope="module", autouse=True)
@pytest.fixture(scope="session", autouse=True)
def slurm_container(docker_client, slurm_ssh_port):
"""Build and launch a container running various queues and SSH, exposed on a random available
port."""
Expand All @@ -172,7 +172,7 @@ def slurm_container(docker_client, slurm_ssh_port):
)


@pytest.fixture(scope="module", autouse=True)
@pytest.fixture(scope="session", autouse=True)
def mongo_container(docker_client, db_port):
"""Build and launch a container running MongoDB, exposed on a random available
port."""
Expand All @@ -190,7 +190,7 @@ def store_database_name():
return _get_random_name()


@pytest.fixture(scope="module", autouse=True)
@pytest.fixture(scope="session", autouse=True)
def write_tmp_settings(
random_project_name,
store_database_name,
Expand Down

0 comments on commit e311fb0

Please sign in to comment.