Skip to content

Commit ec31eff

Browse files
committed
concerns on rendering, update git diff output
1 parent e072cf7 commit ec31eff

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

chapter_12_organising_test_files.asciidoc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ class FunctionalTest(StaticLiveServerTestCase):
262262
NOTE: Keeping helper methods in a base `FunctionalTest` class
263263
is one useful way of preventing duplication in FTs.
264264
Later in the book (in <<chapter_page_pattern>>) we'll use the "Page pattern",
265+
// CSANAD: is this reference to the chapter "The Token Social Bit, the Page
266+
// Pattern, and an Exercise for the Reader" as chapter_page_pattern
267+
// still clear in print?
265268
which is related, but prefers composition over inheritance--always a good thing.
266269

267270
Our first FT is now in its own file,
@@ -547,6 +550,8 @@ Like this:
547550
((("Python 3", "lambda functions")))
548551
`lambda` in Python is the syntax for making a one-line, throwaway function--it
549552
saves you from having to use `def..():` and an indented block:
553+
// CSANAD: the `def..` and the `():` renders apart from each other, on two
554+
// lines. I couldn't find out how to keep them together.
550555
551556
[role="skipme"]
552557
[source,python]
@@ -792,10 +797,10 @@ Whereas _test_views.py_ just loses one class:
792797
----
793798
--- a/src/lists/tests/test_views.py
794799
+++ b/src/lists/tests/test_views.py
795-
@@ -103,34 +104,3 @@ class ListViewTest(TestCase):
796-
self.assertNotContains(response, "other list item 1")
797-
self.assertNotContains(response, "other list item 2")
800+
33 +74,3 @@ class NewItemTest(TestCase):
801+
)
798802
803+
self.assertRedirects(response, f"/lists/{correct_list.id}/")
799804
-
800805
-
801806
-class ListAndItemModelsTest(TestCase):

0 commit comments

Comments
 (0)