Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7b7cc9e

Browse files
committed
Update transcript in Testing Chapter 5
The word "mark" in the transcripts should be "mock". Updated the transcript - found two more instances for update.
1 parent 558ba89 commit 7b7cc9e

File tree

1 file changed

+2
-2
lines changed
  • transcripts/10-testing

1 file changed

+2
-2
lines changed

‎transcripts/10-testing/5.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
00:54 And for this I'm just going to use the unittest
1818
00:57 patch method on the mock module
1919
01:00 because it's a perfect fit for this scenario.
20-
01:05 So from unittest.mark, import patch.
20+
01:05 So from unittest.mock, import patch.
2121
01:10 I actually need to import to random module
22-
01:12 because that's the one we're going to mark.
22+
01:12 because that's the one we're going to mock.
2323
01:15 And you can use it as patch object
2424
01:20 and that's to random module. Just specify the function
2525
01:24 or method you want to patch.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /