From 03a648811615cb623affc2d79dccd4b05919319e Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Mon, 3 Jan 2022 00:11:30 -0500 Subject: [PATCH] Refs #31026 -- Changed @jinja2_tests imports to be relative. --- tests/forms_tests/tests/test_forms.py | 3 ++- tests/forms_tests/tests/test_formsets.py | 3 ++- tests/forms_tests/tests/test_i18n.py | 3 ++- tests/forms_tests/tests/tests.py | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py index a9d1f8b24c1..5c653fb4929 100644 --- a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -23,7 +23,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 50342cfaa96..c5a4f259e00 100644 --- a/tests/forms_tests/tests/test_formsets.py +++ b/tests/forms_tests/tests/test_formsets.py @@ -14,7 +14,8 @@ from django.forms.formsets import ( 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 29967b2cb78..35901479337 100644 --- a/tests/forms_tests/tests/test_i18n.py +++ b/tests/forms_tests/tests/test_i18n.py @@ -4,7 +4,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 819c2481a55..24ae09a8003 100644 --- a/tests/forms_tests/tests/tests.py +++ b/tests/forms_tests/tests/tests.py @@ -5,12 +5,12 @@ 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, ChoiceFieldModel, ChoiceModel, ChoiceOptionModel, Defaults, FileModel, OptionalMultiChoiceModel, ) +from . import jinja2_tests class ChoiceFieldForm(ModelForm):