Skip to content

Commit be8efc2

Browse files
committed
Add create key with uid
1 parent 8bdeb85 commit be8efc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/client/test_client_key_meilisearch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_create_keys_default(client, test_key_info):
4545

4646
def test_create_keys_with_options(client, test_key_info):
4747
"""Tests the creation of a key with arguments."""
48-
key = client.create_key(options={'description': test_key_info['description'], 'actions': test_key_info['actions'], 'indexes': test_key_info['indexes'], 'expiresAt': datetime(2030, 6, 4, 21, 8, 12, 32).isoformat()[:-3]+'Z' })
48+
key = client.create_key(options={'description': test_key_info['description'], 'actions': test_key_info['actions'], 'indexes': test_key_info['indexes'], 'uid': '82acc342-d2df-4291-84bd-8400d3f05f06', 'expiresAt': datetime(2030, 6, 4, 21, 8, 12, 32).isoformat()[:-3]+'Z' })
4949
assert isinstance(key, dict)
5050
assert key['key'] is not None
5151
assert key['name'] is None

0 commit comments

Comments
 (0)