Debian Codegraph @

modeltranslation/tests/test_compat.py

raw symbols SCIP
1 # mypy: disable-error-code="import-not-found"
2 import pytest
3 from modeltranslation import translator
4
5
6 class TestDjangoModelUtils:
7 """
8 Test case for https://github.com/deschler/django-modeltranslation/issues/760
9 """
10
11 def test_soft_deletable_model(self):
12 try:
13 from model_utils.models import SoftDeletableModel
14 except ImportError:
15 pytest.skip("django-model-utils not installed")
16
17 class M1(SoftDeletableModel):
18 pass
19
20 @translator.register(M1)
21 class M1Options(translator.TranslationOptions):
22 pass