diff options
author | BonfaceKilz | 2020-09-26 01:33:52 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-09-26 01:40:23 +0300 |
commit | bbcecf8e7d8389b8466fe51dde6538387fdce6b5 (patch) | |
tree | 30a6768fc05d966d46b97bba323f62c55d882b6e /wqflask/tests/base | |
parent | cde844b7de1875bda37c6672acf712c4a8bf2b79 (diff) | |
download | genenetwork2-bbcecf8e7d8389b8466fe51dde6538387fdce6b5.tar.gz |
Fix failing tests by replacing mock with unittest.mock
* wqflask/tests/base/test_data_set.py (imports): Run:
`find . -type f -name "*py" -print0 | xargs -0 sed -i \
"s|import mock|from unittest import mock|g"`
* wqflask/tests/base/test_trait.py(imports): Ditto.
* wqflask/tests/utility/test_authentication_tools.py(imports): Ditto.
* wqflask/tests/utility/test_hmac.py(imports). Ditto.
* wqflask/tests/wqflask/api/test_gen_menu.py: Ditto
Diffstat (limited to 'wqflask/tests/base')
-rw-r--r-- | wqflask/tests/base/test_data_set.py | 2 | ||||
-rw-r--r-- | wqflask/tests/base/test_trait.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/tests/base/test_data_set.py b/wqflask/tests/base/test_data_set.py index b1de4932..96563a16 100644 --- a/wqflask/tests/base/test_data_set.py +++ b/wqflask/tests/base/test_data_set.py @@ -1,7 +1,7 @@ """Tests for wqflask/base/data_set.py""" import unittest -import mock +from unittest import mock from wqflask import app from .data import gen_menu_json diff --git a/wqflask/tests/base/test_trait.py b/wqflask/tests/base/test_trait.py index d333458a..bf4e88e0 100644 --- a/wqflask/tests/base/test_trait.py +++ b/wqflask/tests/base/test_trait.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Tests wqflask/base/trait.py""" import unittest -import mock +from unittest import mock from base.trait import GeneralTrait from base.trait import retrieve_trait_info |