Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Sep 28, 2024
1 parent cca77d5 commit 499cae5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/test_forms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import pytest
from demo.models import Issue3TestModel, SimpleConcurrentModel
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured, SuspiciousOperation
from django.forms.models import modelform_factory
from django.forms.widgets import HiddenInput, TextInput
Expand Down Expand Up @@ -88,15 +87,10 @@ def test_signer(self):
def test_initial_value(self):
Form = modelform_factory(SimpleConcurrentModel, type("xxx", (ConcurrentForm,), {}), exclude=("char_field",))
form = Form({"username": "aaa"})
# if settings.IS_DJANGO_5:
self.assertHTMLEqual(
str(form["version"]),
'<input id="id_version" name="version" type="hidden" value="">',
)
# else:
# self.assertHTMLEqual(
# str(form["version"]), '<input type="hidden" value="" name="version" id="id_version" />'
# )
self.assertTrue(form.is_valid(), form.non_field_errors())

def test_initial_value_with_custom_signer(self):
Expand Down

0 comments on commit 499cae5

Please sign in to comment.