Skip to content

Commit

Permalink
fixup! importer: raise NotImplementedError instead of silently return…
Browse files Browse the repository at this point in the history
…ing None
  • Loading branch information
yagebu committed Jan 20, 2025
1 parent 650aa73 commit ba57381
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions beangulp/importer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ def test_importer_methods(self):
memo = cache._FileMemo('/tmp/test')
imp = importer.ImporterProtocol()
self.assertIsInstance(imp.FLAG, str)
self.assertFalse(imp.identify(memo))
with self.assertRaises(NotImplementedError):
self.assertFalse(imp.identify(memo))
self.assertFalse(imp.extract(memo))
self.assertFalse(imp.file_account(memo))
with self.assertRaises(NotImplementedError):
self.assertFalse(imp.file_account(memo))
self.assertFalse(imp.file_date(memo))
self.assertFalse(imp.file_name(memo))

0 comments on commit ba57381

Please sign in to comment.