Skip to content

Commit 0ac9cc6

Browse files
committed
Merge branch 'main' of github.com:zipperer/Book-TDD-Web-Dev-Python into zipperer-main
2 parents 191576e + 6ec080e commit 0ac9cc6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

chapter_04_philosophy_and_refactoring.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ NOTE: This is another distinction between FTs and unit tests;
716716
we use them as the primary tool for testing our UI,
717717
and the HTML that implements it.
718718

719-
So, wanted an `<h1>`:
719+
So, we wanted an `<h1>`:
720720

721721
[role="sourcecode"]
722722
.lists/templates/home.html (ch04l008)
@@ -916,7 +916,7 @@ but it should be enough to reassure ourselves that things are working.
916916
To get that functional test to green,
917917
we then enter into the lower-level unit tests cycle,
918918
where we put together all the moving parts required,
919-
add tests for all the edge cases.
919+
and add tests for all the edge cases.
920920
Any time we get to green & refactored at the unit tests level,
921921
we can pop back up to the FT level to guide us towards the
922922
next thing we need to work.

chapter_05_post_and_database.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def home_page(request):
355355
OK that gets our unit tests passing, but it's not really what we want.footnote:[
356356
But we _did_ learn about `request.method` and `request.POST` right?
357357
I know it might seem that I'm overdoing it,
358-
but doing things in tiny little really does have a lot of advantages,
358+
but doing things in tiny little steps really does have a lot of advantages,
359359
and one of them is that you can really think about (or in this case, learn)
360360
one thing at a time.]
361361

@@ -633,7 +633,7 @@ on applying DRY too quickly.
633633

634634

635635
Now we get to the `self.fail('Finish the test!')`.
636-
If get rid of that and finish writing our FT,
636+
If we get rid of that and finish writing our FT,
637637
to add the check for adding a second item to the table
638638
(copy and paste is our friend),
639639
we begin to see that our first cut solution really isn't going to, um, cut it:
@@ -964,7 +964,7 @@ django.db.utils.OperationalError: no such table: lists_item
964964
----
965965

966966
In Django, the ORM's job is to model and read and write from database tables,
967-
but there's a second system that's in charge,of actually _creating_
967+
but there's a second system that's in charge of actually _creating_
968968
the tables in the database called "migrations".
969969
Its job is to let you to add, remove, and modify tables and columns,
970970
based on changes you make to your _models.py_ files.

chapter_06_explicit_waits_1.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ to separate the timing and re-raising logic from the test assertions.
445445
But we'll wait until we need it in multiple places.
446446

447447
NOTE: If you've used Selenium before, you may know that it has a few
448-
https://www.selenium.dev/documentation/webdriver/waits/#explicit-wait[helper functions to do waits].
448+
https://www.selenium.dev/documentation/webdriver/waits/#explicit-waits[helper functions to do waits].
449449
I'm not a big fan of them, though not for any objective reason really.
450450
Over the course of the book we'll build a couple of wait helper tools
451451
which I think will make for nice, readable code,

0 commit comments

Comments
 (0)