Skip to content

Commit 998caf8

Browse files
committed
fixes for tests of 14
1 parent 92f9f24 commit 998caf8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

chapter_14_simple_form.asciidoc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ from lists.forms import ItemForm
7272
7373
7474
class ItemFormTest(TestCase):
75-
7675
def test_form_renders_item_text_input(self):
7776
form = ItemForm()
7877
self.fail(form.as_p())
@@ -222,6 +221,7 @@ from django import forms
222221
223222
from lists.models import Item
224223
224+
225225
class ItemForm(forms.models.ModelForm):
226226
227227
class Meta:
@@ -378,7 +378,6 @@ error strings? Having a constant:
378378
----
379379
EMPTY_ITEM_ERROR = "You can't have an empty list item"
380380
[...]
381-
382381
error_messages = {"text": {"required": EMPTY_ITEM_ERROR}}
383382
----
384383
====
@@ -1120,8 +1119,6 @@ I promise we'll talk. Let's first see if we're back to passing tests:
11201119
----
11211120
$ pass:quotes[*python src/manage.py test functional_tests*]
11221121
[...]
1123-
....
1124-
---------------------------------------------------------------------
11251122
Ran 4 tests in 12.154s
11261123
11271124
OK

0 commit comments

Comments
 (0)