@@ -262,6 +262,9 @@ class FunctionalTest(StaticLiveServerTestCase):
262
262
NOTE: Keeping helper methods in a base `FunctionalTest` class
263
263
is one useful way of preventing duplication in FTs.
264
264
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?
265
268
which is related, but prefers composition over inheritance--always a good thing.
266
269
267
270
Our first FT is now in its own file,
@@ -547,6 +550,8 @@ Like this:
547
550
((("Python 3", "lambda functions")))
548
551
`lambda` in Python is the syntax for making a one-line, throwaway function--it
549
552
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.
550
555
551
556
[role="skipme"]
552
557
[source,python]
@@ -792,10 +797,10 @@ Whereas _test_views.py_ just loses one class:
792
797
----
793
798
--- a/src/lists/tests/test_views.py
794
799
+++ 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
+ )
798
802
803
+ self.assertRedirects(response, f"/lists/{correct_list.id}/")
799
804
-
800
805
-
801
806
-class ListAndItemModelsTest(TestCase):
0 commit comments