Changes between Version 13 and Version 14 of HowToWriteTests


Ignore:
Timestamp:
2021-09-14T15:11:09Z (3 years ago)
Author:
exarkun
Comment:

some links to supporting resources for mocks

Legend:

Unmodified
Added
Removed
Modified
  • HowToWriteTests

    v13 v14  
    2929
    3030You may notice some existing tests use the `mock` module.
    31 We are phasing out this style of testing.
     31We are phasing out this style of testing ([https://nedbatchelder.com/blog/201206/tldw_stop_mocking_start_testing.html], [https://martinfowler.com/articles/mocksArentStubs.html]).
    3232Please do not use it in new tests.
    3333Instead, factor units and interfaces so mocks are not required.
    3434If that is not possible then implement units so that they don't need to be mocked and can be used in the test suite.
    35 If that is not possible then implement a verified fake of the required interface and use that in the test suite.
     35If that is not possible then implement [https://pythonspeed.com/articles/verified-fakes/ a verified fake] of the required interface and use that in the test suite.
    3636
    3737= code coverage =