Skip to content

Commit

Permalink
fix other typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
danlu1 committed Dec 29, 2023
1 parent b1de950 commit 2371e00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/integration/synapseclient/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 5 additions & 1 deletion tests/unit/synapseclient/unit_test_get_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2371e00

Please sign in to comment.