diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py index 233a3a622d..1972d34685 100644 --- a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -45,7 +45,8 @@ from django.test import SimpleTestCase from django.test.utils import override_settings from django.utils.datastructures import MultiValueDict from django.utils.safestring import mark_safe -from tests.forms_tests.tests import jinja2_tests + +from . import jinja2_tests class FrameworkForm(Form): diff --git a/tests/forms_tests/tests/test_formsets.py b/tests/forms_tests/tests/test_formsets.py index 8634b3df29..31abbdf9f8 100644 --- a/tests/forms_tests/tests/test_formsets.py +++ b/tests/forms_tests/tests/test_formsets.py @@ -17,7 +17,8 @@ from django.forms.formsets import BaseFormSet, all_valid, formset_factory from django.forms.utils import ErrorList from django.forms.widgets import HiddenInput from django.test import SimpleTestCase -from tests.forms_tests.tests import jinja2_tests + +from . import jinja2_tests class Choice(Form): diff --git a/tests/forms_tests/tests/test_i18n.py b/tests/forms_tests/tests/test_i18n.py index ea6a8e104b..50bcd9cde7 100644 --- a/tests/forms_tests/tests/test_i18n.py +++ b/tests/forms_tests/tests/test_i18n.py @@ -10,7 +10,8 @@ from django.forms import ( from django.test import SimpleTestCase from django.utils import translation from django.utils.translation import gettext_lazy -from tests.forms_tests.tests import jinja2_tests + +from . import jinja2_tests class FormsI18nTests(SimpleTestCase): diff --git a/tests/forms_tests/tests/tests.py b/tests/forms_tests/tests/tests.py index a6ebabcc73..aba405db15 100644 --- a/tests/forms_tests/tests/tests.py +++ b/tests/forms_tests/tests/tests.py @@ -5,7 +5,6 @@ from django.db import models from django.forms import CharField, FileField, Form, ModelForm from django.forms.models import ModelFormMetaclass from django.test import SimpleTestCase, TestCase -from tests.forms_tests.tests import jinja2_tests from ..models import ( BoundaryModel, @@ -16,6 +15,7 @@ from ..models import ( FileModel, OptionalMultiChoiceModel, ) +from . import jinja2_tests class ChoiceFieldForm(ModelForm):