Skip to content
Open
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
4 changes: 2 additions & 2 deletions chapter_21_mocking_2.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ we want to check we are using the Django auth library:
====
// CSANAD: I think the `diff` style snippets are better for renaming things.

And we're down to 17 tests:
And we're down to 18 tests:

[subs="specialcharacters,quotes"]
----
Expand Down Expand Up @@ -1585,7 +1585,7 @@ Using mock.return_value::
and thus check on how it gets used later in your code;
this usually happens in the "assert" or "then" part of your test.
Alternatively, you can _assign_ to it,
usally up-front in the "arrange" or "given" part of your test,
usually up-front in the "arrange" or "given" part of your test,
as a way of saying
"I want this mocked-out function to return a particular value".

Expand Down
Loading