Skip to content

Commit a7665a1

Browse files
tanbroclaude
andcommitted
test(tests): add MSSQL support to key conversion tests
Add MSSQL test cases for key conversion in both sync and async tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 442bc4e commit a7665a1

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

tests/asyncio/test_key_convert.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ def _convert(k): # type: ignore
3333
def _convert(k): # type: ignore
3434
return crc32(str(k).encode())
3535

36+
elif engine.name == "mssql":
37+
38+
def _convert(k): # type: ignore
39+
return f"custom_{k}"
40+
3641
else:
3742
raise NotImplementedError()
3843

tests/test_key_convert.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ def _convert(k): # type: ignore
3131
def _convert(k): # type: ignore
3232
return crc32(str(k).encode())
3333

34+
elif engine.name == "mssql":
35+
36+
def _convert(k): # type: ignore
37+
return f"custom_{k}"
38+
3439
else:
3540
raise NotImplementedError()
3641

0 commit comments

Comments
 (0)