checking file types against parsers in the consumer.

This commit is contained in:
jonaswinkler
2020-12-01 15:26:05 +01:00
parent b0c8ade241
commit 834352130c
5 changed files with 127 additions and 113 deletions

View File

@@ -552,7 +552,7 @@ class TestConsumer(DirectoriesMixin, TestCase):
try:
self.consumer.try_consume_file(self.get_test_file())
except ConsumerError as e:
self.assertTrue("File extension .pdf does not map to any" in str(e))
self.assertTrue("No parsers abvailable for" in str(e))
return
self.fail("Should throw exception")