diff --git a/tests/integration/synapseclient/integration_test.py b/tests/integration/synapseclient/integration_test.py index a7f4d9cac..eb91bc676 100644 --- a/tests/integration/synapseclient/integration_test.py +++ b/tests/integration/synapseclient/integration_test.py @@ -583,7 +583,7 @@ def testMoveProject(syn, schedule_for_cleanup): class TestPermissionsOnProject: @pytest.fixture(autouse=True, scope="function") - def init(self, syn: Synapse, schedule_for_cleanup) -> None: + def init(self, syn: Synapse, schedule_for_cleanup: Callable[..., None]) -> None: self.syn = syn self.schedule_for_cleanup = schedule_for_cleanup diff --git a/tests/unit/synapseclient/unit_test_get_permissions.py b/tests/unit/synapseclient/unit_test_get_permissions.py index 8255d55fb..52cd6ebd1 100644 --- a/tests/unit/synapseclient/unit_test_get_permissions.py +++ b/tests/unit/synapseclient/unit_test_get_permissions.py @@ -33,6 +33,10 @@ class TestGetPermissionsForCaller: + """ + Test the permissions a caller has for an entity + """ + @pytest.fixture(autouse=True, scope="function") def setup_method(self, syn) -> None: self.syn = syn @@ -43,7 +47,7 @@ def setup_method(self, syn) -> None: def teardown_method(self) -> None: self.syn.restGET.stop() - def assert_entity_permission(self, d: Dict[str, bool], e: Permissions): + def assert_entity_permission(self, d: Dict[str, bool], e: Permissions) -> None: """check if the values match between API output and function output""" assert d["canView"] == e.can_view assert d["canEdit"] == e.can_edit