From 029b26a0bf0c9a02f989d7f47918f04ce3a26fd0 Mon Sep 17 00:00:00 2001 From: Igor Ivanov Date: Mon, 10 Nov 2025 15:00:27 +0300 Subject: [PATCH] Fixed typos in chapter_21_mocking_2.asciidoc --- chapter_21_mocking_2.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter_21_mocking_2.asciidoc b/chapter_21_mocking_2.asciidoc index 7d7acbd9..76de848f 100644 --- a/chapter_21_mocking_2.asciidoc +++ b/chapter_21_mocking_2.asciidoc @@ -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"] ---- @@ -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".