Fix: remove outdated admin logentry handler (#8580)

This commit is contained in:
shamoon 2025-01-01 10:11:54 -08:00 committed by GitHub
parent 9153be489c
commit 51b0f6e325
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 29 deletions

View file

@ -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)