Skip to content

Commit 67ac9de

Browse files
committed
Merge changes from atlas
1 parent da29c87 commit 67ac9de

15 files changed

+110
-19
lines changed

acknowledgments.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ gonulate, Margie Roswell, Ben Elliott, Ramsay Mayka, peterj, 1hx, Wi, Duncan
9999
Betts, Matthew Senko, Neric "Kasu" Kaz, Dominic Scotto, Andrey Makarov,
100100
and many, many more.
101101

102-
=== Additional Thanks for the Thid Edition
102+
=== Additional Thanks for the Third Edition
103103

104104
Thanks to my editor Rita Fernando,
105105
thanks to my tech reviewers Csanad, David, Sebastian and Jan,

atlas.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@
5858
"pdf": {
5959
"version": "web",
6060
"toc": true,
61-
"index": true,
61+
"index": false,
6262
"antennahouse_version": "AHFormatterV62_64-MR4",
6363
"syntaxhighlighting": true,
6464
"show_comments": false,
6565
"color_count": "1",
6666
"trim_size": "7inx9.1875in"
6767
},
6868
"epub": {
69-
"index": true,
69+
"index": false,
7070
"toc": true,
7171
"epubcheck": true,
7272
"syntaxhighlighting": true,

chapter_01.asciidoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
[[chapter_01]]
22
== Getting Django Set Up Using a [keep-together]#Functional Test#
33

4+
.A Note for Early Release Readers
5+
****
6+
With Early Release ebooks, you get books in their earliest form—the author's raw and unedited content as they write—so you can take advantage of these technologies long before the official release of these titles.
7+
8+
This will be the 1st chapter of the final book. The GitHub repo is available at https://github.com/hjwp/book-example.
9+
10+
If you have comments about how we might improve the content and/or examples in this book, or if you notice missing material within this chapter, please reach out to the author at [email protected].
11+
****
12+
413
TDD isn't something that comes naturally.
514
It's a discipline, like a martial art, and just like in a Kung Fu movie,
615
you need a bad-tempered and unreasonable master to force you to learn the discipline.

chapter_02_unittest.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
[[chapter_02_unittest]]
22
== Extending Our Functional Test Using [keep-together]#the unittest Module#
33

4+
.A Note for Early Release Readers
5+
****
6+
With Early Release ebooks, you get books in their earliest form—the author's raw and unedited content as they write—so you can take advantage of these technologies long before the official release of these titles.
7+
8+
This will be the 2nd chapter of the final book. The GitHub repo is available at https://github.com/hjwp/book-example.
9+
10+
If you have comments about how we might improve the content and/or examples in this book, or if you notice missing material within this chapter, please reach out to the author at [email protected].
11+
****
412

513
((("functional tests (FTs)", "using unittest module", id="FTunittest02")))
614
((("unittest module", "basic functional test creation", id="UTMbasic02")))

chapter_03_unit_test_first_view.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
[[chapter_03_unit_test_first_view]]
22
== Testing a Simple Home Page with [keep-together]#Unit Tests#
33

4+
.A Note for Early Release Readers
5+
****
6+
With Early Release ebooks, you get books in their earliest form—the author's raw and unedited content as they write—so you can take advantage of these technologies long before the official release of these titles.
7+
8+
This will be the 3rd chapter of the final book. The GitHub repo is available at https://github.com/hjwp/book-example.
9+
10+
If you have comments about how we might improve the content and/or examples in this book, or if you notice missing material within this chapter, please reach out to the author at [email protected].
11+
****
412

513
We finished the last chapter with a functional test failing,
614
telling us that it wanted the home page for our site to have ``To-Do'' in its title.

chapter_04_philosophy_and_refactoring.asciidoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
[[chapter_04_philosophy_and_refactoring]]
22
== What Are We Doing with All These Tests? (And, Refactoring)
33

4+
.A Note for Early Release Readers
5+
****
6+
With Early Release ebooks, you get books in their earliest form—the author's raw and unedited content as they write—so you can take advantage of these technologies long before the official release of these titles.
7+
8+
This will be the 4th chapter of the final book. The GitHub repo is available at https://github.com/hjwp/book-example.
9+
10+
If you have comments about how we might improve the content and/or examples in this book, or if you notice missing material within this chapter, please reach out to the author at [email protected].
11+
****
12+
413
((("Test-Driven Development (TDD)", "need for", id="TDDneed04")))
514
Now that we've seen the basics of TDD in action,
615
it's time to pause and talk about why we're doing it.

chapter_05_post_and_database.asciidoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
[[chapter_05_post_and_database]]
22
== Saving User Input: Testing the Database
33

4+
.A Note for Early Release Readers
5+
****
6+
With Early Release ebooks, you get books in their earliest form—the author's raw and unedited content as they write—so you can take advantage of these technologies long before the official release of these titles.
7+
8+
This will be the 5th chapter of the final book. The GitHub repo is available at https://github.com/hjwp/book-example.
9+
10+
If you have comments about how we might improve the content and/or examples in this book, or if you notice missing material within this chapter, please reach out to the author at [email protected].
11+
****
12+
413
// ((("user interactions", "testing database input", id="UIdatabase05")))
514
// disabled due to pdf rendering issue
615
So far we've managed to return a static HTML page with an input box in it.

chapter_06_explicit_waits_1.asciidoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
[[chapter_06_explicit_waits_1]]
22
== Improving Functional Tests: Ensuring Isolation and Removing Voodoo Sleeps
33

4+
.A Note for Early Release Readers
5+
****
6+
With Early Release ebooks, you get books in their earliest form—the author's raw and unedited content as they write—so you can take advantage of these technologies long before the official release of these titles.
7+
8+
This will be the 6th chapter of the final book. The GitHub repo is available at https://github.com/hjwp/book-example.
9+
10+
If you have comments about how we might improve the content and/or examples in this book, or if you notice missing material within this chapter, please reach out to the author at [email protected].
11+
****
12+
413
Before we dive in and fix our single-global-list problem,
514
let's take care of a couple of housekeeping items.
615
At the end of the last chapter, we made a note

chapter_07_working_incrementally.asciidoc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
[[chapter_07_working_incrementally]]
22
== Working Incrementally
33

4+
.A Note for Early Release Readers
5+
****
6+
With Early Release ebooks, you get books in their earliest form—the author's raw and unedited content as they write—so you can take advantage of these technologies long before the official release of these titles.
7+
8+
This will be the 7th chapter of the final book. The GitHub repo is available at https://github.com/hjwp/book-example.
9+
10+
If you have comments about how we might improve the content and/or examples in this book, or if you notice missing material within this chapter, please reach out to the author at [email protected].
11+
****
12+
413
((("Test-Driven Development (TDD)", "adapting existing code incrementally", id="TDDadapt07")))
514
((("Testing Goat", "working state to working state")))
615
Now let's address our real problem,
@@ -133,7 +142,7 @@ To create a brand new list, we'll have a special URL that accepts POST requests:
133142

134143
// DAVID: for consistency, personally I would add trailing slashes to all the URLs.
135144
// SEBASTIAN: Why not just POST /lists/ ?
136-
// Unless it's a URL for a view with a form 😅
145+
// Unless it's a URL for a view with a form!
137146

138147
To add a new item to an existing list,
139148
we'll have a separate URL, to which we can send POST requests:
@@ -145,7 +154,7 @@ we'll have a separate URL, to which we can send POST requests:
145154

146155
// DAVID: I would use kebab case for URLs -> /add-item/
147156
// SEBASTIAN: Why not just POST /lists/<list identifier>/item ?
148-
// Unless it's a URL for a view with a form 😅
157+
// Unless it's a URL for a view with a form!
149158

150159
(Again, we're not trying to perfectly follow the rules of REST, which would use a PUT request
151160
here--we're just using REST for inspiration.

chapter_08_prettification.asciidoc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
[[chapter_08_prettification]]
22
== Prettification: Layout and Styling, and What to Test About It
33

4+
.A Note for Early Release Readers
5+
****
6+
With Early Release ebooks, you get books in their earliest form—the author's raw and unedited content as they write—so you can take advantage of these technologies long before the official release of these titles.
7+
8+
This will be the 8th chapter of the final book. The GitHub repo is available at https://github.com/hjwp/book-example.
9+
10+
If you have comments about how we might improve the content and/or examples in this book, or if you notice missing material within this chapter, please reach out to the author at [email protected].
11+
****
12+
413
//RITA: You used the word "ugly" 3x on one page, which caught my attention and made me wonder if it sounds too judgy. Consider swapping "ugly" in the intro paragraph for "boring" or "plain." I'd go as far to suggest "meh" or "blah" to keep with your writing tone.
514

615
((("layout", see="CSS; design and layout testing")))
@@ -497,7 +506,7 @@ AssertionError: 102.5 != 512 within 10 delta (409.5 difference)
497506
Sure enough, they're still getting to exactly where they were before.
498507

499508
// SEBASTIAN: huh, is this consistent with TDD cycle you are teaching in previous
500-
// chapters? I'd assume refactoring is made AFTER we get to green test 🤔
509+
// chapters? I'd assume refactoring is made AFTER we get to green test
501510
// Perhaps one could move the refactoring to happen BEFORE quick'n'dirty hack with text-align: center was reversed?
502511

503512
That's worthy of a commit:
@@ -594,7 +603,7 @@ TIP: Take the time to browse through the
594603
to use in your site.
595604

596605
// SEBASTIAN: WDYT about linking directly do Docs page instead to index page of Bootstrap?
597-
// I expected to see them instead of the same welcome page 😅
606+
// I expected to see them instead of the same welcome page
598607

599608
Does that work?
600609

0 commit comments

Comments
 (0)