Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
test_chapter_19_mocking,
test_chapter_20_fixtures_and_wait_decorator,
test_chapter_21_server_side_debugging,
test_chapter_22_outside_in,
unit-test,
]

Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
path = source/chapter_21_server_side_debugging/superlists
url = [email protected]:hjwp/book-example.git
[submodule "source/chapter_19/superlists"]
path = source/chapter_outside_in/superlists
path = source/chapter_22_outside_in/superlists
url = [email protected]:hjwp/book-example.git
[submodule "source/chapter_20/superlists"]
path = source/chapter_purist_unit_tests/superlists
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ test_chapter_20_fixtures_and_wait_decorator: chapter_20_fixtures_and_wait_decora
.PHONY: test_chapter_21_server_side_debugging
test_chapter_21_server_side_debugging: chapter_21_server_side_debugging.html $(TMPDIR) $(VENV)/bin
$(VENV)/bin/pytest -s --tb=short ./tests/test_chapter_21_server_side_debugging.py
.PHONY: test_chapter_outside_in
test_chapter_outside_in: chapter_outside_in.html $(TMPDIR) $(VENV)/bin
$(VENV)/bin/pytest -s --tb=short ./tests/test_chapter_outside_in.py
.PHONY: test_chapter_22_outside_in
test_chapter_22_outside_in: chapter_22_outside_in.html $(TMPDIR) $(VENV)/bin
$(VENV)/bin/pytest -s --tb=short ./tests/test_chapter_22_outside_in.py
.PHONY: test_chapter_purist_unit_tests
test_chapter_purist_unit_tests: chapter_purist_unit_tests.html $(TMPDIR) $(VENV)/bin
$(VENV)/bin/pytest -s --tb=short ./tests/test_chapter_purist_unit_tests.py
Expand Down
2 changes: 1 addition & 1 deletion appendix_IX_cheat_sheet.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,6 @@ If you do find yourself writing tests with lots of mocks, and they feel
painful, remember “__listen to your tests__”—ugly, mocky tests may be
trying to tell you that your code could be simplified.

Relevant chapters: <<chapter_outside_in>>, <<chapter_purist_unit_tests>>,
Relevant chapters: <<chapter_22_outside_in>>, <<chapter_purist_unit_tests>>,
<<chapter_hot_lava>>

2 changes: 1 addition & 1 deletion appendix_bdd.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ https://pythonhosted.org/behave-django/[behave-django].
**********************************************************************

((("code examples, obtaining and using")))I'm
going to use the example from <<chapter_outside_in>>.
going to use the example from <<chapter_22_outside_in>>.
We have a basic to-do lists site, and we want to add a new feature:
logged-in users should be able to view the lists they've authored in one place.
Up until this point, all lists are effectively anonymous.
Expand Down
2 changes: 1 addition & 1 deletion appendix_github_links.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Full List of Links for Each Chapter
<<chapter_19_mocking>>:: https://github.com/hjwp/book-example/tree/chapter_19_mocking
<<chapter_20_fixtures_and_wait_decorator>>:: https://github.com/hjwp/book-example/tree/chapter_20_fixtures_and_wait_decorator
<<chapter_21_server_side_debugging>>:: https://github.com/hjwp/book-example/tree/chapter_21_server_side_debugging
<<chapter_outside_in>>:: https://github.com/hjwp/book-example/tree/chapter_outside_in
<<chapter_22_outside_in>>:: https://github.com/hjwp/book-example/tree/chapter_22_outside_in
<<chapter_purist_unit_tests>>:: https://github.com/hjwp/book-example/tree/chapter_purist_unit_tests
<<chapter_CI>>:: https://github.com/hjwp/book-example/tree/chapter_CI
<<chapter_page_pattern>>:: https://github.com/hjwp/book-example/tree/chapter_page_pattern
Expand Down
2 changes: 1 addition & 1 deletion atlas.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"chapter_19_mocking.asciidoc",
"chapter_20_fixtures_and_wait_decorator.asciidoc",
"chapter_21_server_side_debugging.asciidoc",
"chapter_outside_in.asciidoc",
"chapter_22_outside_in.asciidoc",
"chapter_purist_unit_tests.asciidoc",
"chapter_CI.asciidoc",
"chapter_page_pattern.asciidoc",
Expand Down
2 changes: 1 addition & 1 deletion book.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ include::chapter_18_spiking_custom_auth.asciidoc[]
include::chapter_19_mocking.asciidoc[]
include::chapter_20_fixtures_and_wait_decorator.asciidoc[]
include::chapter_21_server_side_debugging.asciidoc[]
include::chapter_outside_in.asciidoc[]
include::chapter_22_outside_in.asciidoc[]
include::chapter_purist_unit_tests.asciidoc[]
include::chapter_CI.asciidoc[]
include::chapter_page_pattern.asciidoc[]
Expand Down
2 changes: 1 addition & 1 deletion chapter_07_working_incrementally.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -2543,7 +2543,7 @@ YAGNI::
just because it suggests itself at the time.
Chances are, you won't use it,
or you won't have anticipated your future requirements correctly.
See <<chapter_outside_in>> for one methodology that helps us avoid this trap.
See <<chapter_22_outside_in>> for one methodology that helps us avoid this trap.
((("Test-Driven Development (TDD)", "philosophy of", "YAGNI")))
((("YAGNI (You ain&#x2019;t gonna need it!)")))

Expand Down
Loading