mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-18 20:46:49 +01:00
Fix tests to run on boxes with post-consume-scripts set
This commit is contained in:
parent
a593798b4b
commit
870357968a
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
from random import randint
|
from random import randint
|
||||||
|
|
||||||
from django.test import TestCase
|
from django.test import TestCase, override_settings
|
||||||
|
|
||||||
from ..models import Correspondent, Document, Tag
|
from ..models import Correspondent, Document, Tag
|
||||||
from ..signals import document_consumption_finished
|
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
|
We make use of document_consumption_finished, so we should test that it's
|
||||||
doing what we expect wrt to tag & correspondent matching.
|
doing what we expect wrt to tag & correspondent matching.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue