diff options
author | Frederick Muriuki Muriithi | 2024-03-26 10:33:05 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-03-26 10:33:05 +0300 |
commit | dde660453fc402b020178db41d136334a1b91b89 (patch) | |
tree | a3d4c926c5204181b55223c73031f37560653167 /gn2/tests | |
parent | c87dc8facf9c2442e2d340336d63a0b2f3772e40 (diff) | |
download | genenetwork2-dde660453fc402b020178db41d136334a1b91b89.tar.gz |
bug: gn2.wqflask.resource_manager has no `requests` defined
gn2.wqflask.resource_manager module does not have a `requests`
variable or function defined, leading to errors in the test.
Diffstat (limited to 'gn2/tests')
-rw-r--r-- | gn2/tests/unit/wqflask/test_resource_manager.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gn2/tests/unit/wqflask/test_resource_manager.py b/gn2/tests/unit/wqflask/test_resource_manager.py index a4b3a0ee..d7eb0e87 100644 --- a/gn2/tests/unit/wqflask/test_resource_manager.py +++ b/gn2/tests/unit/wqflask/test_resource_manager.py @@ -58,7 +58,6 @@ 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( @@ -76,7 +75,6 @@ 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( { |