Skip to content

Commit

Permalink
fix(auditlog-extra): explicitly define app_label for DummyTestModel
Browse files Browse the repository at this point in the history
KK-1113.

Also, fix tests.
  • Loading branch information
nikomakela committed Dec 4, 2024
1 parent e7d31e5 commit 31bd397
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions hel_django_auditlog_extra/tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ class DummyTestModel(models.Model):

class Meta:
managed = False
app_label = "hel_django_auditlog_extra"
7 changes: 0 additions & 7 deletions hel_django_auditlog_extra/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@
from hel_django_auditlog_extra.utils import AuditLogConfigurationHelper


def test_get_app_models():
"""Test that get_app_models returns all models."""
all_models = AuditLogConfigurationHelper.get_app_models()
assert LogEntry in all_models
assert DummyTestModel in all_models # Assert that DummyTestModel is included


@pytest.mark.parametrize(
"model, expected_key",
[
Expand Down

0 comments on commit 31bd397

Please sign in to comment.