fix: fix 'attribute-defined-outside-init' for pylint
This commit is contained in:
parent
92754a64c4
commit
dd25d98e7d
8 changed files with 29 additions and 24 deletions
|
@ -363,7 +363,7 @@ class TestForm(TestCase):
|
|||
|
||||
# basic
|
||||
form = self.make_form(schema=schema)
|
||||
self.assertFalse(hasattr(form, "deform_form"))
|
||||
self.assertIsNone(form.deform_form)
|
||||
dform = form.get_deform()
|
||||
self.assertIsInstance(dform, deform.Form)
|
||||
self.assertIs(form.deform_form, dform)
|
||||
|
@ -684,7 +684,7 @@ class TestForm(TestCase):
|
|||
def test_validate(self):
|
||||
schema = self.make_schema()
|
||||
form = self.make_form(schema=schema)
|
||||
self.assertFalse(hasattr(form, "validated"))
|
||||
self.assertIsNone(form.validated)
|
||||
|
||||
# will not validate unless request is POST
|
||||
self.request.POST = {"foo": "blarg", "bar": "baz"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue