Skip to content

Commit 45116f9

Browse files
committed
Rename mocking chapter to ch 19
1 parent ae23fb3 commit 45116f9

10 files changed

+12
-12
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
path = source/chapter_18_spiking_custom_auth/superlists
4848
url = [email protected]:hjwp/book-example.git
4949
[submodule "source/chapter_17/superlists"]
50-
path = source/chapter_mocking/superlists
50+
path = source/chapter_19_mocking/superlists
5151
url = [email protected]:hjwp/book-example.git
5252
[submodule "source/chapter_18/superlists"]
5353
path = source/chapter_server_side_debugging/superlists

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ test_chapter_17_second_deploy: chapter_17_second_deploy.html $(TMPDIR) $(VENV)/b
133133
.PHONY: test_chapter_18_spiking_custom_auth
134134
test_chapter_18_spiking_custom_auth: chapter_18_spiking_custom_auth.html $(TMPDIR) $(VENV)/bin
135135
$(VENV)/bin/pytest -s --tb=short ./tests/test_chapter_18_spiking_custom_auth.py
136-
.PHONY: test_chapter_mocking
137-
test_chapter_mocking: chapter_mocking.html $(TMPDIR) $(VENV)/bin
138-
$(VENV)/bin/pytest -s --tb=short ./tests/test_chapter_mocking.py
136+
.PHONY: test_chapter_19_mocking
137+
test_chapter_19_mocking: chapter_19_mocking.html $(TMPDIR) $(VENV)/bin
138+
$(VENV)/bin/pytest -s --tb=short ./tests/test_chapter_19_mocking.py
139139
.PHONY: test_chapter_fixtures_and_wait_decorator
140140
test_chapter_fixtures_and_wait_decorator: chapter_fixtures_and_wait_decorator.html $(TMPDIR) $(VENV)/bin
141141
$(VENV)/bin/pytest -s --tb=short ./tests/test_chapter_fixtures_and_wait_decorator.py

appendix_github_links.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Full List of Links for Each Chapter
3737
<<chapter_16_javascript>>:: https://github.com/hjwp/book-example/tree/chapter_16_javascript
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
40-
<<chapter_mocking>>:: https://github.com/hjwp/book-example/tree/chapter_mocking
40+
<<chapter_19_mocking>>:: https://github.com/hjwp/book-example/tree/chapter_19_mocking
4141
<<chapter_fixtures_and_wait_decorator>>:: https://github.com/hjwp/book-example/tree/chapter_fixtures_and_wait_decorator
4242
<<chapter_server_side_debugging>>:: https://github.com/hjwp/book-example/tree/chapter_server_side_debugging
4343
<<chapter_outside_in>>:: https://github.com/hjwp/book-example/tree/chapter_outside_in

atlas.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"chapter_17_second_deploy.asciidoc",
3232
"part3.asciidoc",
3333
"chapter_18_spiking_custom_auth.asciidoc",
34-
"chapter_mocking.asciidoc",
34+
"chapter_19_mocking.asciidoc",
3535
"chapter_fixtures_and_wait_decorator.asciidoc",
3636
"chapter_server_side_debugging.asciidoc",
3737
"chapter_outside_in.asciidoc",

book.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ include::chapter_17_second_deploy.asciidoc[]
4242

4343
include::part3.forbook.asciidoc[]
4444
include::chapter_18_spiking_custom_auth.asciidoc[]
45-
include::chapter_mocking.asciidoc[]
45+
include::chapter_19_mocking.asciidoc[]
4646
include::chapter_fixtures_and_wait_decorator.asciidoc[]
4747
include::chapter_server_side_debugging.asciidoc[]
4848
include::chapter_outside_in.asciidoc[]

chapter_mocking.asciidoc renamed to chapter_19_mocking.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
[[chapter_mocking]]
1+
[[chapter_19_mocking]]
22
== Using Mocks to Test External Dependencies or Reduce Duplication
33

44
*******************************************************************************
55
🚧 Warning, this Chapter is the 2e version, and uses Django 1.11
66
77
This chapter and all the following ones are the second edition versions, so they still use Django 1.11, Python 3.8, and so on.
88
9-
To follow along with this chapter, it’s probably easiest to reset your code to match my example code as it was in the 2e, by resetting to: https://github.com/hjwp/book-example/tree/chapter_mocking
9+
To follow along with this chapter, it’s probably easiest to reset your code to match my example code as it was in the 2e, by resetting to: https://github.com/hjwp/book-example/tree/chapter_19_mocking
1010
1111
And you should also probably delete and re-create your virtualenv with * Python 3.8 or 3.9 * and Django 1.11 (pip install "django <2")
1212

tests/chapters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"chapter_17_second_deploy",
2121
# part 3
2222
"chapter_18_spiking_custom_auth",
23-
"chapter_mocking",
23+
"chapter_19_mocking",
2424
"chapter_fixtures_and_wait_decorator",
2525
"chapter_server_side_debugging",
2626
"chapter_outside_in",

tests/test_chapter_mocking.py renamed to tests/test_chapter_19_mocking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from book_tester import ChapterTest
55

66
class Chapter17Test(ChapterTest):
7-
chapter_name = 'chapter_mocking'
7+
chapter_name = 'chapter_19_mocking'
88
previous_chapter = 'chapter_18_spiking_custom_auth'
99

1010
def test_listings_and_commands_and_output(self):

tests/test_chapter_fixtures_and_wait_decorator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class Chapter18Test(ChapterTest):
88
chapter_name = 'chapter_fixtures_and_wait_decorator'
9-
previous_chapter = 'chapter_mocking'
9+
previous_chapter = 'chapter_19_mocking'
1010

1111
def test_listings_and_commands_and_output(self):
1212
self.parse_listings()

0 commit comments

Comments
 (0)