Skip to content

Commit

Permalink
Ruff ...
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Nov 3, 2023
1 parent f6a9859 commit 6f4f3de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/unit_tests/config/test_queue_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,8 @@ def test_wrong_config_option_types(queue_system, queue_option, queue_value, err_
def test_that_configuring_another_queue_system_gives_warning():
filename = "config.ert"
with open(filename, "w", encoding="utf-8") as f:
f.write("NUM_REALIZATIONS 1\n")
f.write(f"QUEUE_SYSTEM LSF\n")
f.write(f"QUEUE_OPTION SLURM SQUEUE_TIMEOUT 2\n")
f.write("QUEUE_SYSTEM LSF\n")
f.write("QUEUE_OPTION SLURM SQUEUE_TIMEOUT 2\n")

with pytest.warns(
ConfigWarning, match="Setting 'SQUEUE_TIMEOUT' for SLURM but LSF is selected."
Expand Down

0 comments on commit 6f4f3de

Please sign in to comment.