Skip to content

Commit b9bf187

Browse files
committed
more little fixes in working incr
1 parent 9d897db commit b9bf187

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

chapter_working_incrementally.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,13 +1177,12 @@ present the changes in the form of a diff:
11771177
11781178
11791179
class HomePageTest(TestCase):
1180-
@@ -44,22 +44,32 @@ class ListViewTest(TestCase):
1181-
1180+
@@ -35,20 +35,30 @@ class ListViewTest(TestCase):
1181+
self.assertContains(response, "itemey 2")
11821182
11831183
11841184
-class ItemModelTest(TestCase):
11851185
+class ListAndItemModelsTest(TestCase):
1186-
11871186
def test_saving_and_retrieving_items(self):
11881187
+ list_ = List()
11891188
+ list_.save()
@@ -1419,6 +1418,7 @@ items:
14191418
[source,python]
14201419
----
14211420
class ListViewTest(TestCase):
1421+
[...]
14221422
def test_displays_all_items(self):
14231423
list_ = List.objects.create()
14241424
Item.objects.create(text="itemey 1", list=list_)
@@ -1433,7 +1433,7 @@ of our own code that caused the failure:
14331433

14341434
[subs="specialcharacters,macros"]
14351435
----
1436-
File "...python-tdd-book/lists/views.py", line 9, in new_list
1436+
File "...python-tdd-book/lists/views.py", line 10, in new_list
14371437
Item.objects.create(text=request.POST['item_text'])
14381438
----
14391439

tests/sourcetree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def check_chunks_against_future_contents(listing_contents, future_contents):
267267
print(repr(reindented_chunk))
268268
print('future contents')
269269
print(repr(future_contents))
270-
raise ApplyCommitException(f"Commit lines in wrong order (?)")
270+
raise ApplyCommitException(f"Commit lines in wrong order, or listing is missing a [...] (?)")
271271

272272

273273

0 commit comments

Comments
 (0)