Skip to content

Commit

Permalink
fixing test in warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mikibonacci committed Dec 19, 2024
1 parent 170677f commit 5dc7208
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_submit_qe_workchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def test_warning_messages(
pw_code.num_cpus = 1
global_model.check_resources()
# no warning:
assert submit_model.submission_warning_messages == ""
for suggestion in ["go_remote", "avoid_overloading"]:
assert suggestions[suggestion] in submit_model.submission_warning_messages

# now we increase the resources, so we should have the Warning-3
pw_code.num_cpus = len(os.sched_getaffinity(0))
Expand Down

0 comments on commit 5dc7208

Please sign in to comment.