diff options
author | zsloan | 2021-02-18 21:58:58 +0000 |
---|---|---|
committer | BonfaceKilz | 2021-02-19 12:59:37 +0300 |
commit | cb039b3e7e8a3a260edc80b0de79fc27af795cf0 (patch) | |
tree | 6f22feddeb326d808bcc774603154b26d37c9ef4 /wqflask/tests | |
parent | e55861d6ced9a5c746a8e28c9a9c067e3927275a (diff) | |
download | genenetwork2-cb039b3e7e8a3a260edc80b0de79fc27af795cf0.tar.gz |
Fixed TestCheckResourceAvailability to make it work after realizing that Redis.smembers apparently returns values as bytes
Diffstat (limited to 'wqflask/tests')
-rw-r--r-- | wqflask/tests/unit/utility/test_authentication_tools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/tests/unit/utility/test_authentication_tools.py b/wqflask/tests/unit/utility/test_authentication_tools.py index 6d817f5e..fff5fd8f 100644 --- a/wqflask/tests/unit/utility/test_authentication_tools.py +++ b/wqflask/tests/unit/utility/test_authentication_tools.py @@ -89,7 +89,7 @@ class TestCheckResourceAvailability(unittest.TestCase): requests_mock): """Test the resource availability if the user is the super user""" resource_id_mock.return_value = 1 - redis_mock.smembers.return_value = ["Jane"] + redis_mock.smembers.return_value = [b"Jane"] add_new_resource_mock.return_value = {"default_mask": 2} requests_mock.return_value = TestResponse() test_dataset = mock.MagicMock() |