Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

Commit

Permalink
fix create test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandroroiz committed Apr 4, 2024
1 parent 4dc13e3 commit cb3dd9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/confidant/routes/credentials_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,10 @@ def test_create_credential(mocker: MockerFixture, credential: Credential):
assert 'Name already exists' in json_data['error']

# Credential key value pair is duplicate
mocker.patch(
'confidant.routes.credentials.Credential.data_type_date_index.query',
return_value=[],
)
mocker.patch(
'confidant.services.credentialmanager.is_key_value_pair_duplicate',
return_value=(True, 123),
Expand Down

0 comments on commit cb3dd9c

Please sign in to comment.