Add a new heading for the no mocks policy paragraph so I find it next time
[Imported from Trac: page HowToWriteTests, version 15]
parent
0995be2a52
commit
60e3d86a86
|
@ -27,6 +27,8 @@ class T(TestCase):
|
||||||
|
|
||||||
Now run it!
|
Now run it!
|
||||||
|
|
||||||
|
# no mocks policy
|
||||||
|
|
||||||
You may notice some existing tests use the `mock` module.
|
You may notice some existing tests use the `mock` module.
|
||||||
We are phasing out this style of testing (<https://nedbatchelder.com/blog/201206/tldw_stop_mocking_start_testing.html>, <https://martinfowler.com/articles/mocksArentStubs.html>).
|
We are phasing out this style of testing (<https://nedbatchelder.com/blog/201206/tldw_stop_mocking_start_testing.html>, <https://martinfowler.com/articles/mocksArentStubs.html>).
|
||||||
Please do not use it in new tests.
|
Please do not use it in new tests.
|
||||||
|
|
Loading…
Reference in a new issue