Skip to content

Commit

Permalink
MOTOR-1257 key_id can be passed as UUID with pymongo>=4.7 (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneHarvey committed Feb 29, 2024
1 parent 8442c0a commit e8a6d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/asyncio_tests/test_asyncio_encryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async def test_validation(self):
msg = "key_id must be a bson.binary.Binary with subtype 4"
algo = Algorithm.AEAD_AES_256_CBC_HMAC_SHA_512_Deterministic
with self.assertRaisesRegex(TypeError, msg):
await client_encryption.encrypt("str", algo, key_id=uuid.uuid4())
await client_encryption.encrypt("str", algo, key_id="str")
with self.assertRaisesRegex(TypeError, msg):
await client_encryption.encrypt("str", algo, key_id=Binary(b"123"))

Expand Down

0 comments on commit e8a6d6d

Please sign in to comment.