Skip to content

Commit

Permalink
Patched load config in job_to_slurm tests v3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreAdam committed Jul 8, 2024
1 parent 3674b31 commit e9b4e8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/test_job_to_slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
def mock_load_config(tmp_path):
mock_config = {"local": {"path": tmp_path}}
os.makedirs(tmp_path / "jobs", exist_ok=True)
with patch("load_config", return_value=mock_config) as mock_load_config:
with patch(
"milex_scheduler.load_config", return_value=mock_config
) as mock_load_config:
yield mock_load_config


Expand Down

0 comments on commit e9b4e8b

Please sign in to comment.