Skip to content

Commit

Permalink
And then fix the test, of course
Browse files Browse the repository at this point in the history
  • Loading branch information
mbercx committed Sep 21, 2021
1 parent 3aa820c commit 2c08469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/calculations/test_pw.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ def test_pw_validate_inputs_restart_nscf(
with pytest.raises(ValueError, match='`startingpot` should be set to `file` for a `.*` calculation.'):
generate_calc_job(fixture_sandbox, entry_point_name, inputs)

# Set `restart_mode` to `'restart'` -> raise
# Set `restart_mode` to `'restart'` -> warning
parameters['ELECTRONS'].pop('startingpot')
parameters['CONTROL']['restart_mode'] = 'restart'
inputs['parameters'] = orm.Dict(dict=parameters)
with pytest.raises(ValueError, match='`restart_mode` should be set to `from_scratch` for a `.*`.'):
with pytest.warns(Warning, match='`restart_mode` should be set to `from_scratch` for a `.*`.'):
generate_calc_job(fixture_sandbox, entry_point_name, inputs)

0 comments on commit 2c08469

Please sign in to comment.