Skip to content

Commit 6dd5981

Browse files
authored
Merge branch 'main' into StephanieAG-patch-1-OTG
2 parents b5892d0 + 025ffca commit 6dd5981

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1579
-1433
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ jobs:
3232
test_chapter_16_javascript,
3333
test_chapter_18_spiking_custom_auth,
3434
test_chapter_19_mocking,
35-
unit-test
35+
test_chapter_20_fixtures_and_wait_decorator,
36+
test_chapter_21_server_side_debugging,
37+
test_chapter_22_outside_in,
38+
unit-test,
3639
]
3740

3841
env:

.gitmodules

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
path = source/chapter_19_mocking/superlists
5151
url = [email protected]:hjwp/book-example.git
5252
[submodule "source/chapter_18/superlists"]
53-
path = source/chapter_server_side_debugging/superlists
53+
path = source/chapter_21_server_side_debugging/superlists
5454
url = [email protected]:hjwp/book-example.git
5555
[submodule "source/chapter_19/superlists"]
56-
path = source/chapter_outside_in/superlists
56+
path = source/chapter_22_outside_in/superlists
5757
url = [email protected]:hjwp/book-example.git
5858
[submodule "source/chapter_20/superlists"]
5959
path = source/chapter_purist_unit_tests/superlists
@@ -85,8 +85,8 @@
8585
[submodule "source/chapter_22/superlists"]
8686
path = source/chapter_page_pattern/superlists
8787
url = [email protected]:hjwp/book-example.git
88-
[submodule "source/chapter_fixtures_and_wait_decorator/superlists"]
89-
path = source/chapter_fixtures_and_wait_decorator/superlists
88+
[submodule "source/chapter_20_fixtures_and_wait_decorator/superlists"]
89+
path = source/chapter_20_fixtures_and_wait_decorator/superlists
9090
url = [email protected]:hjwp/book-example.git
9191
[submodule "source/chapter_12_organising_test_files/superlists"]
9292
path = source/chapter_12_organising_test_files/superlists

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ test_chapter_18_spiking_custom_auth: chapter_18_spiking_custom_auth.html $(TMPDI
131131
.PHONY: test_chapter_19_mocking
132132
test_chapter_19_mocking: chapter_19_mocking.html $(TMPDIR) $(VENV)/bin
133133
$(VENV)/bin/pytest -s --tb=short ./tests/test_chapter_19_mocking.py
134-
.PHONY: test_chapter_fixtures_and_wait_decorator
135-
test_chapter_fixtures_and_wait_decorator: chapter_fixtures_and_wait_decorator.html $(TMPDIR) $(VENV)/bin
136-
$(VENV)/bin/pytest -s --tb=short ./tests/test_chapter_fixtures_and_wait_decorator.py
137-
.PHONY: test_chapter_server_side_debugging
138-
test_chapter_server_side_debugging: chapter_server_side_debugging.html $(TMPDIR) $(VENV)/bin
139-
$(VENV)/bin/pytest -s --tb=short ./tests/test_chapter_server_side_debugging.py
140-
.PHONY: test_chapter_outside_in
141-
test_chapter_outside_in: chapter_outside_in.html $(TMPDIR) $(VENV)/bin
142-
$(VENV)/bin/pytest -s --tb=short ./tests/test_chapter_outside_in.py
134+
.PHONY: test_chapter_20_fixtures_and_wait_decorator
135+
test_chapter_20_fixtures_and_wait_decorator: chapter_20_fixtures_and_wait_decorator.html $(TMPDIR) $(VENV)/bin
136+
$(VENV)/bin/pytest -s --tb=short ./tests/test_chapter_20_fixtures_and_wait_decorator.py
137+
.PHONY: test_chapter_21_server_side_debugging
138+
test_chapter_21_server_side_debugging: chapter_21_server_side_debugging.html $(TMPDIR) $(VENV)/bin
139+
$(VENV)/bin/pytest -s --tb=short ./tests/test_chapter_21_server_side_debugging.py
140+
.PHONY: test_chapter_22_outside_in
141+
test_chapter_22_outside_in: chapter_22_outside_in.html $(TMPDIR) $(VENV)/bin
142+
$(VENV)/bin/pytest -s --tb=short ./tests/test_chapter_22_outside_in.py
143143
.PHONY: test_chapter_purist_unit_tests
144144
test_chapter_purist_unit_tests: chapter_purist_unit_tests.html $(TMPDIR) $(VENV)/bin
145145
$(VENV)/bin/pytest -s --tb=short ./tests/test_chapter_purist_unit_tests.py

appendix_IX_cheat_sheet.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Selenium/Functional Testing Best Practices
122122
123123
* Look into BDD tools as another way of structuring your FTs.
124124
125-
Relevant chapters: <<chapter_server_side_debugging>>, <<chapter_CI>>,
125+
Relevant chapters: <<chapter_21_server_side_debugging>>, <<chapter_CI>>,
126126
<<chapter_page_pattern>>
127127

128128
Outside-In, Test Isolation Versus Integrated Tests, and Mocking
@@ -161,6 +161,6 @@ If you do find yourself writing tests with lots of mocks, and they feel
161161
painful, remember &#x201c;__listen to your tests__&#x201d;—ugly, mocky tests may be
162162
trying to tell you that your code could be simplified.
163163

164-
Relevant chapters: <<chapter_outside_in>>, <<chapter_purist_unit_tests>>,
164+
Relevant chapters: <<chapter_22_outside_in>>, <<chapter_purist_unit_tests>>,
165165
<<chapter_hot_lava>>
166166

appendix_bdd.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ https://pythonhosted.org/behave-django/[behave-django].
4343
**********************************************************************
4444
4545
((("code examples, obtaining and using")))I'm
46-
going to use the example from <<chapter_outside_in>>.
46+
going to use the example from <<chapter_22_outside_in>>.
4747
We have a basic to-do lists site, and we want to add a new feature:
4848
logged-in users should be able to view the lists they've authored in one place.
4949
Up until this point, all lists are effectively anonymous.

appendix_github_links.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ Full List of Links for Each Chapter
3838
<<chapter_17_second_deploy>>:: https://github.com/hjwp/book-example/tree/chapter_17_second_deploy
3939
<<chapter_18_spiking_custom_auth>>:: https://github.com/hjwp/book-example/tree/chapter_18_spiking_custom_auth
4040
<<chapter_19_mocking>>:: https://github.com/hjwp/book-example/tree/chapter_19_mocking
41-
<<chapter_fixtures_and_wait_decorator>>:: https://github.com/hjwp/book-example/tree/chapter_fixtures_and_wait_decorator
42-
<<chapter_server_side_debugging>>:: https://github.com/hjwp/book-example/tree/chapter_server_side_debugging
43-
<<chapter_outside_in>>:: https://github.com/hjwp/book-example/tree/chapter_outside_in
41+
<<chapter_20_fixtures_and_wait_decorator>>:: https://github.com/hjwp/book-example/tree/chapter_20_fixtures_and_wait_decorator
42+
<<chapter_21_server_side_debugging>>:: https://github.com/hjwp/book-example/tree/chapter_21_server_side_debugging
43+
<<chapter_22_outside_in>>:: https://github.com/hjwp/book-example/tree/chapter_22_outside_in
4444
<<chapter_purist_unit_tests>>:: https://github.com/hjwp/book-example/tree/chapter_purist_unit_tests
4545
<<chapter_CI>>:: https://github.com/hjwp/book-example/tree/chapter_CI
4646
<<chapter_page_pattern>>:: https://github.com/hjwp/book-example/tree/chapter_page_pattern

atlas.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
"part3.asciidoc",
3333
"chapter_18_spiking_custom_auth.asciidoc",
3434
"chapter_19_mocking.asciidoc",
35-
"chapter_fixtures_and_wait_decorator.asciidoc",
36-
"chapter_server_side_debugging.asciidoc",
37-
"chapter_outside_in.asciidoc",
35+
"chapter_20_fixtures_and_wait_decorator.asciidoc",
36+
"chapter_21_server_side_debugging.asciidoc",
37+
"chapter_22_outside_in.asciidoc",
3838
"chapter_purist_unit_tests.asciidoc",
3939
"chapter_CI.asciidoc",
4040
"chapter_page_pattern.asciidoc",
@@ -94,4 +94,4 @@
9494
"templating": false,
9595
"lang": "en",
9696
"accent_color": ""
97-
}
97+
}

book.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ include::chapter_17_second_deploy.asciidoc[]
4343
include::part3.forbook.asciidoc[]
4444
include::chapter_18_spiking_custom_auth.asciidoc[]
4545
include::chapter_19_mocking.asciidoc[]
46-
include::chapter_fixtures_and_wait_decorator.asciidoc[]
47-
include::chapter_server_side_debugging.asciidoc[]
48-
include::chapter_outside_in.asciidoc[]
46+
include::chapter_20_fixtures_and_wait_decorator.asciidoc[]
47+
include::chapter_21_server_side_debugging.asciidoc[]
48+
include::chapter_22_outside_in.asciidoc[]
4949
include::chapter_purist_unit_tests.asciidoc[]
5050
include::chapter_CI.asciidoc[]
5151
include::chapter_page_pattern.asciidoc[]

chapter_07_working_incrementally.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2543,7 +2543,7 @@ YAGNI::
25432543
just because it suggests itself at the time.
25442544
Chances are, you won't use it,
25452545
or you won't have anticipated your future requirements correctly.
2546-
See <<chapter_outside_in>> for one methodology that helps us avoid this trap.
2546+
See <<chapter_22_outside_in>> for one methodology that helps us avoid this trap.
25472547
((("Test-Driven Development (TDD)", "philosophy of", "YAGNI")))
25482548
((("YAGNI (You ain&#x2019;t gonna need it!)")))
25492549

0 commit comments

Comments
 (0)