From 6af58203dd9574d4b89557093a86e7b8c879b015 Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Tue, 28 Mar 2017 21:23:42 +0000 Subject: [PATCH] fix: travis doesn't like my new tests --- src/documents/tests/test_consumer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/documents/tests/test_consumer.py b/src/documents/tests/test_consumer.py index 101655f6c..511f77a04 100644 --- a/src/documents/tests/test_consumer.py +++ b/src/documents/tests/test_consumer.py @@ -16,6 +16,7 @@ class TestConsumer(TestCase): self.DummyParser ) + @mock.patch("documents.consumer.Consumer.CONSUME") @mock.patch("documents.consumer.os.makedirs") @mock.patch("documents.consumer.os.path.exists", return_value=True) @mock.patch("documents.consumer.document_consumer_declaration.send") @@ -34,6 +35,7 @@ class TestConsumer(TestCase): self.assertEqual(Consumer()._get_parser_class("doc.pdf"), DummyParser2) + @mock.patch("documents.consumer.Consumer.CONSUME") @mock.patch("documents.consumer.os.makedirs") @mock.patch("documents.consumer.os.path.exists", return_value=True) @mock.patch("documents.consumer.document_consumer_declaration.send") @@ -41,6 +43,7 @@ class TestConsumer(TestCase): m.return_value = ((None, lambda _: None),) self.assertIsNone(Consumer()._get_parser_class("doc.pdf")) + @mock.patch("documents.consumer.Consumer.CONSUME") @mock.patch("documents.consumer.os.makedirs") @mock.patch("documents.consumer.os.path.exists", return_value=True) @mock.patch("documents.consumer.document_consumer_declaration.send")