Skip to content

Commit

Permalink
Use different FRACTAL_RUNNER_WORKING_BASE_DIR in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tcompa committed Jan 10, 2023
1 parent 5262dea commit 97c038b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_full_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ async def add_dummy_workflows(backend, client, project_id):
workflow has ID i. In this way, the workflow folders for each one of the
test (with a specific backend) will have different names.
"""

num_empty_workflows = backends_available.index(backend)
for ind in range(num_empty_workflows):
_ = await client.post(
Expand Down Expand Up @@ -249,7 +248,8 @@ async def test_failing_workflow_TaskExecutionError(
override_settings_factory(
FRACTAL_RUNNER_BACKEND=backend,
FRACTAL_SLURM_CONFIG_FILE=testdata_path / "slurm_config.json",
FRACTAL_RUNNER_WORKING_BASE_DIR=tmp777_path / "artifacts",
FRACTAL_RUNNER_WORKING_BASE_DIR=tmp777_path
/ "artifacts-test_failing_workflow_TaskExecutionError",
)

debug(f"Testing with {backend=}")
Expand Down Expand Up @@ -352,7 +352,8 @@ async def test_failing_workflow_JobExecutionError(
override_settings_factory(
FRACTAL_RUNNER_BACKEND="slurm",
FRACTAL_SLURM_CONFIG_FILE=testdata_path / "slurm_config.json",
FRACTAL_RUNNER_WORKING_BASE_DIR=tmp777_path / "artifacts",
FRACTAL_RUNNER_WORKING_BASE_DIR=tmp777_path
/ "artifacts-test_failing_workflow_JobExecutionError",
)

async with MockCurrentUser(persist=True) as user:
Expand Down Expand Up @@ -383,7 +384,6 @@ async def test_failing_workflow_JobExecutionError(
assert res.status_code == 201

# CREATE WORKFLOW
await add_dummy_workflows("slurm", client, project_id)
res = await client.post(
f"{PREFIX}/workflow/",
json=dict(name="test workflow", project_id=project.id),
Expand Down

0 comments on commit 97c038b

Please sign in to comment.