tests: always access the mock module through the compat helper module
commit065f6202986cbf1c90e0db4ef14aaa1cad57f6d3
authorDavid Aguilar <davvid@gmail.com>
Sun, 18 Jul 2021 00:35:17 +0000 (17 17:35 -0700)
committerDavid Aguilar <davvid@gmail.com>
Sun, 18 Jul 2021 01:37:01 +0000 (17 18:37 -0700)
treed5b667992ade0f7803d811142e28345895c4693c
parentd1f2301151457705a7cbc5e357d730054a84e7f3
tests: always access the mock module through the compat helper module

The helper module will import mock from either the unitest.mock stdlib
module or from the older standalone mock module.

Leverage the helper module for mocks throughout the test suite.

Signed-off-by: David Aguilar <davvid@gmail.com>
test/branch_test.py
test/cmds_test.py
test/dag_test.py
test/git_test.py
test/helper.py
test/main_model_test.py
test/models_selection_test.py
test/resources_test.py