Skip to content

Commit 4e3067b

Browse files
try fix, need to fix others
1 parent 7ee17b5 commit 4e3067b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/tests/unit_tests/services/auth/test_api_key_auth_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def test_get_auth_credentials_filters_correctly(self, mock_session):
167167
ApiKeyAuthService.get_auth_credentials(self.tenant_id, self.category, self.provider)
168168

169169
# Verify where conditions are correct
170-
where_call = mock_session.query.return_value.where.call_args[0]
170+
where_call = mock_session.query.return_value.filter_by.call_args[0]
171171
assert len(where_call) == 4 # tenant_id, category, provider, disabled
172172

173173
@patch("services.auth.api_key_auth_service.db.session")
@@ -217,7 +217,7 @@ def test_delete_provider_auth_filters_by_tenant(self, mock_session):
217217
ApiKeyAuthService.delete_provider_auth(self.tenant_id, self.binding_id)
218218

219219
# Verify where conditions include tenant_id and binding_id
220-
where_call = mock_session.query.return_value.where.call_args[0]
220+
where_call = mock_session.query.return_value.filter_by.call_args[0]
221221
assert len(where_call) == 2
222222

223223
def test_validate_api_key_auth_args_success(self):

0 commit comments

Comments
 (0)