mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-12 00:19:48 +00:00
Fix: remove outdated admin logentry handler (#8580)
This commit is contained in:
@@ -4,7 +4,6 @@ from collections.abc import Iterable
|
||||
from pathlib import Path
|
||||
from random import randint
|
||||
|
||||
from django.contrib.admin.models import LogEntry
|
||||
from django.contrib.auth.models import User
|
||||
from django.test import TestCase
|
||||
from django.test import override_settings
|
||||
@@ -451,11 +450,3 @@ class TestDocumentConsumptionFinishedSignal(TestCase):
|
||||
document=self.doc_contains,
|
||||
)
|
||||
self.assertEqual(self.doc_contains.correspondent, None)
|
||||
|
||||
def test_logentry_created(self):
|
||||
document_consumption_finished.send(
|
||||
sender=self.__class__,
|
||||
document=self.doc_contains,
|
||||
)
|
||||
|
||||
self.assertEqual(LogEntry.objects.count(), 1)
|
||||
|
Reference in New Issue
Block a user