aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-03-26 10:54:35 +0300
committerFrederick Muriuki Muriithi2024-03-26 10:54:35 +0300
commit6105041a0ea8cc5f6c65672c560264d8ef1855ac (patch)
tree6d73ae0622ae8d09c617bd3eef7545c4ddf72e93
parent181b7f270dd05e16b36472c924552a41713272c6 (diff)
downloadgenenetwork2-6105041a0ea8cc5f6c65672c560264d8ef1855ac.tar.gz
Revert "bug: gn2.wqflask.resource_manager has no `requests` defined"
This reverts commit dde660453fc402b020178db41d136334a1b91b89.
-rw-r--r--gn2/tests/unit/wqflask/test_resource_manager.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gn2/tests/unit/wqflask/test_resource_manager.py b/gn2/tests/unit/wqflask/test_resource_manager.py
index d7eb0e87..a4b3a0ee 100644
--- a/gn2/tests/unit/wqflask/test_resource_manager.py
+++ b/gn2/tests/unit/wqflask/test_resource_manager.py
@@ -58,6 +58,7 @@ class TestGetUserMembership(unittest.TestCase):
class TestCheckUserAccessRole(unittest.TestCase):
"""Test cases for `get_highest_user_access_role`"""
+ @mock.patch("gn2.wqflask.resource_manager.requests.get")
def test_edit_access(self, requests_mock):
"""Test that the right access roles are set"""
response = mock.PropertyMock(return_value=json.dumps(
@@ -75,6 +76,7 @@ class TestCheckUserAccessRole(unittest.TestCase):
"metadata": DataRole.EDIT,
"admin": AdminRole.EDIT_ACCESS})
+ @mock.patch("gn2.wqflask.resource_manager.requests.get")
def test_no_access(self, requests_mock):
response = mock.PropertyMock(return_value=json.dumps(
{