We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbd04b7 commit 6e5e067Copy full SHA for 6e5e067
docs/pages/principles/testing.md
@@ -358,7 +358,7 @@ and logical breaks in the path when we transition from the local module
358
namespace into an imported dependency's namespace, like so:
359
360
```python
361
-def test_(mocker):
+def test_func(mocker):
362
mock_sum = mocker.patch(
363
"project.lib.np.sum"
364
) # you'll need to patch the alias'd namespace
@@ -375,7 +375,7 @@ now you simply need to patch the imported function in the context of the
375
file-under-test:
376
377
378
379
np_sum = mocker.patch("project.lib.np_sum")
380
...
381
```
0 commit comments