Skip to content

Commit eb4d3a0

Browse files
author
User
committed
Fix test assertion: error count is 22 with optional new fields
The new split_datetime_field and multi_value_field are now required=False, so they don't produce validation errors when submitted empty. Updated the expected error count from 24 to 22.
1 parent 9534bad commit eb4d3a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_app/tests/test_components.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,9 +757,9 @@ def test_form_basic(self):
757757
self.page.wait_for_selector("input[type=submit]").click(delay=DELAY)
758758
self.page.wait_for_selector(".errorlist")
759759

760-
# Submitting an empty form should result in 24 error elements.
760+
# Submitting an empty form should result in 22 error elements.
761761
# The number of errors may change if/when new test form elements are created.
762-
assert len(self.page.query_selector_all(".errorlist")) == 24
762+
assert len(self.page.query_selector_all(".errorlist")) == 22
763763

764764
# Fill out the form
765765
self.page.wait_for_selector("#id_boolean_field").click(delay=DELAY)

0 commit comments

Comments
 (0)