diff options
author | Frederick Muriuki Muriithi | 2024-03-26 10:57:15 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-03-26 10:57:15 +0300 |
commit | 85c72c43cf8c475f42d836476eb9c0b5759e7349 (patch) | |
tree | 1ad1172bde2f642584653c48fc0a9d2123e408e6 /gn2/tests | |
parent | 6105041a0ea8cc5f6c65672c560264d8ef1855ac (diff) | |
download | genenetwork2-85c72c43cf8c475f42d836476eb9c0b5759e7349.tar.gz |
Patch correct module to fix tests.
Diffstat (limited to 'gn2/tests')
-rw-r--r-- | gn2/tests/unit/wqflask/test_resource_manager.py | 4 |
1 files changed, 2 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..8b07963c 100644 --- a/gn2/tests/unit/wqflask/test_resource_manager.py +++ b/gn2/tests/unit/wqflask/test_resource_manager.py @@ -58,7 +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") + @mock.patch("gn3.authentication.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 +76,7 @@ class TestCheckUserAccessRole(unittest.TestCase): "metadata": DataRole.EDIT, "admin": AdminRole.EDIT_ACCESS}) - @mock.patch("gn2.wqflask.resource_manager.requests.get") + @mock.patch("gn3.authentication.requests.get") def test_no_access(self, requests_mock): response = mock.PropertyMock(return_value=json.dumps( { |