Skip to content

Commit 499cae5

Browse files
committed
lint
1 parent cca77d5 commit 499cae5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Diff for: tests/test_forms.py

-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import pytest
22
from demo.models import Issue3TestModel, SimpleConcurrentModel
3-
from django.conf import settings
43
from django.core.exceptions import ImproperlyConfigured, SuspiciousOperation
54
from django.forms.models import modelform_factory
65
from django.forms.widgets import HiddenInput, TextInput
@@ -88,15 +87,10 @@ def test_signer(self):
8887
def test_initial_value(self):
8988
Form = modelform_factory(SimpleConcurrentModel, type("xxx", (ConcurrentForm,), {}), exclude=("char_field",))
9089
form = Form({"username": "aaa"})
91-
# if settings.IS_DJANGO_5:
9290
self.assertHTMLEqual(
9391
str(form["version"]),
9492
'<input id="id_version" name="version" type="hidden" value="">',
9593
)
96-
# else:
97-
# self.assertHTMLEqual(
98-
# str(form["version"]), '<input type="hidden" value="" name="version" id="id_version" />'
99-
# )
10094
self.assertTrue(form.is_valid(), form.non_field_errors())
10195

10296
def test_initial_value_with_custom_signer(self):

0 commit comments

Comments
 (0)