aboutsummaryrefslogtreecommitdiff
path: root/wqflask/tests/unit/utility
diff options
context:
space:
mode:
authorzsloan2021-02-18 21:58:58 +0000
committerBonfaceKilz2021-02-19 12:59:37 +0300
commitcb039b3e7e8a3a260edc80b0de79fc27af795cf0 (patch)
tree6f22feddeb326d808bcc774603154b26d37c9ef4 /wqflask/tests/unit/utility
parente55861d6ced9a5c746a8e28c9a9c067e3927275a (diff)
downloadgenenetwork2-cb039b3e7e8a3a260edc80b0de79fc27af795cf0.tar.gz
Fixed TestCheckResourceAvailability to make it work after realizing that Redis.smembers apparently returns values as bytes
Diffstat (limited to 'wqflask/tests/unit/utility')
-rw-r--r--wqflask/tests/unit/utility/test_authentication_tools.py2
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()