From 870357968a0c642bdcc1d195552d3f838dc5dde7 Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Sat, 6 Jan 2018 17:23:24 +0000 Subject: [PATCH] Fix tests to run on boxes with post-consume-scripts set --- src/documents/tests/test_matchables.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/documents/tests/test_matchables.py b/src/documents/tests/test_matchables.py index 6a84ab06d..44eca5138 100644 --- a/src/documents/tests/test_matchables.py +++ b/src/documents/tests/test_matchables.py @@ -1,6 +1,6 @@ from random import randint -from django.test import TestCase +from django.test import TestCase, override_settings from ..models import Correspondent, Document, Tag from ..signals import document_consumption_finished @@ -199,7 +199,8 @@ class TestMatching(TestCase): ) -class TestApplications(TestCase): +@override_settings(POST_CONSUME_SCRIPT=None) +class TestDocumentConsumptionFinishedSignal(TestCase): """ We make use of document_consumption_finished, so we should test that it's doing what we expect wrt to tag & correspondent matching.