Skip to content

Commit

Permalink
Update Context test to expect KeyError instead of AttributeError
Browse files Browse the repository at this point in the history
The WorkChain Context is now an aiida.common.extenddicts.AttributeDict
which should raise a KeyError when ['key'] referencing excepts
  • Loading branch information
sphuber committed Jan 17, 2018
1 parent a2c9ce9 commit a140af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiida/backends/tests/work/work_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def test_dict(self):
self.assertEqual(wc.ctx['new_attr'], 5)

del wc.ctx['new_attr']
with self.assertRaises(AttributeError):
with self.assertRaises(KeyError):
wc.ctx['new_attr']


Expand Down

0 comments on commit a140af9

Please sign in to comment.