Skip to content

Commit 32701b1

Browse files
committed
Fixed tests following horizontal form changes
* error class has changed to `invalid-feedback`
1 parent a187da0 commit 32701b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_generics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def test_post_error_root_view(self):
163163
data = {'text': 'foobar' * 100}
164164
request = factory.post('/', data, HTTP_ACCEPT='text/html')
165165
response = self.view(request).render()
166-
expected_error = '<span class="help-block">Ensure this field has no more than 100 characters.</span>'
166+
expected_error = '<span class="invalid-feedback">Ensure this field has no more than 100 characters.</span>'
167167
assert expected_error in response.rendered_content.decode()
168168

169169

@@ -310,7 +310,7 @@ def test_put_error_instance_view(self):
310310
data = {'text': 'foobar' * 100}
311311
request = factory.put('/', data, HTTP_ACCEPT='text/html')
312312
response = self.view(request, pk=1).render()
313-
expected_error = '<span class="help-block">Ensure this field has no more than 100 characters.</span>'
313+
expected_error = '<span class="invalid-feedback">Ensure this field has no more than 100 characters.</span>'
314314
assert expected_error in response.rendered_content.decode()
315315

316316

0 commit comments

Comments
 (0)