Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/unit/synapseclient/unit_test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ def init_syn(self, syn: Synapse) -> None:
self.syn.credentials = SynapseAuthTokenCredentials(token="abc", username="def")

def test_check_entity_restrictions_no_unmet_restriction(self) -> None:
with patch("logging.Logger.warning") as mocked_warn:
with patch.object(self.syn.logger, "warning") as mocked_warn:
bundle = {
"entity": {
"id": "syn123",
Expand All @@ -1189,7 +1189,7 @@ def test_check_entity_restrictions_no_unmet_restriction(self) -> None:
def test_check_entity_restrictions_unmet_restriction_entity_file_with_download_file_is_true(
self,
) -> None:
with patch("logging.Logger.warning") as mocked_warn:
with patch.object(self.syn.logger, "warning") as mocked_warn:
bundle = {
"entity": {
"id": "syn123",
Expand Down
Loading