Skip to content

Commit

Permalink
Fix one import/export extras test
Browse files Browse the repository at this point in the history
  • Loading branch information
yakutovicha committed Feb 11, 2019
1 parent dbe0ae2 commit 1571b3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aiida/backends/tests/export_and_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -2599,9 +2599,13 @@ def test_extras_import_mode_wrong(self):
self.import_extras()
with self.assertRaises(ValueError):
import_data(self.export_file, silent=True, extras_mode_existing='xnd') # first letter is wrong
with self.assertRaises(ValueError):
import_data(self.export_file, silent=True, extras_mode_existing='nxd') # second letter is wrong
with self.assertRaises(ValueError):
import_data(self.export_file, silent=True, extras_mode_existing='nnx') # third letter is wrong
with self.assertRaises(ValueError):
import_data(self.export_file, silent=True, extras_mode_existing='n') # too short
with self.assertRaises(ValueError):
import_data(self.export_file, silent=True, extras_mode_existing='nndnn') # too long
with self.assertRaises(TypeError):
import_data(self.export_file, silent=True, extras_mode_existing=5) # wrong type

0 comments on commit 1571b3d

Please sign in to comment.