@@ -797,7 +797,7 @@ Now we get to the `self.fail('Finish the test!')`.
797797If we get rid of that and finish writing our FT,
798798to add the check for adding a second item to the table
799799(copy and paste is our friend),
800- we begin to see that our first cut solution really isn't going to, um, cut it:
800+ we begin to see that our first cut solution really isn't going to, um, [.keep-together]# cut it# :
801801
802802[role="sourcecode"]
803803.functional_tests.py (ch05l017)
@@ -965,10 +965,10 @@ and databases are a stalwart solution in this area.
965965[[django_ORM_first_model]]
966966=== The Django ORM and Our First Model
967967
968- ((("Object-Relational Mapper (ORM)", id="orm05")))
969- ((("Django framework", "Object-Relational Mapper (ORM)", id="DJForm05")))
970- ((("database testing", "Object-Relational Mapper (ORM)", id="DBTorm05")))
971- An Object-Relational Mapper (ORM) is a layer of abstraction for data stored in a database
968+ ((("object-relational mapper (ORM)", id="orm05")))
969+ ((("Django framework", "object-relational mapper (ORM)", id="DJForm05")))
970+ ((("database testing", "object-relational mapper (ORM)", id="DBTorm05")))
971+ An object-relational mapper (ORM) is a layer of abstraction for data stored in a database
972972with tables, rows, and columns.
973973It lets us work with databases using familiar object-oriented metaphors that work well with code.
974974Classes map to database tables, attributes map to columns,
@@ -1384,7 +1384,7 @@ If you wanted to write our tests in a way that stays at the HTTP level—that tr
13841384by sending more than one:
13851385
13861386[role="sourcecode skipme"]
1387- .lists/tests/test_views .py
1387+ .lists/tests/tests .py
13881388====
13891389[source,python]
13901390----
@@ -1731,7 +1731,7 @@ def home_page(request):
17311731====
17321732
17331733[role="pagebreak-before less_space"]
1734- === Better Unit Testing Practice: Each Test Should Test One Thing
1734+ === Better Unit Testing Practice: Each Test Should Test [.keep-together]# One Thing#
17351735
17361736((("unit tests", "testing only one thing")))
17371737((("testing best practices")))((("POST requests", "POST test is too long code smell, addressing")))
@@ -2146,7 +2146,7 @@ Where are we? How is progress on our app, and what have we learned?
21462146But we've got a couple of items on our own to-do list,
21472147namely getting the FT to clean up after itself,
21482148and perhaps more critically,
2149- adding support for more than one list.
2149+ adding support for more than one list:
21502150
21512151[role="scratchpad"]
21522152*****
0 commit comments