Skip to content

Commit ce8107f

Browse files
committed
fix tests
1 parent 2ad5d55 commit ce8107f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

key-value/key-value-aio/tests/stores/keyring/test_keyring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ async def test_not_unbounded(self, store: BaseStore): ...
2828
@override
2929
@pytest.mark.skipif(condition=detect_on_windows(), reason="Keyrings do not support large values on Windows")
3030
async def test_get_large_put_get(self, store: BaseStore, data: dict[str, Any], json: str, round_trip: dict[str, Any]): # pyright: ignore[reportUnusedParameter]
31-
await super().test_get_large_put_get(store, data, json, round_trip=data)
31+
await super().test_get_large_put_get(store, data, json, round_trip=round_trip)

key-value/key-value-shared-test/src/key_value/shared_test/cases.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def parametrize(cls, cases: list[Self]) -> MarkDecorator:
175175

176176
STRING_CASES: PositiveCases = PositiveCases(
177177
Case(name="string", data={"string_key": "string_value"}, json='{"string_key": "string_value"}'),
178-
Case(name="large-value", data={"large_string_key": "a" * 10000}, json=f'{{"large_string_key": "{"a" * 10000}"}}'),
178+
Case(name="large-value", data={"large_string_key": "a" * 2048}, json=f'{{"large_string_key": "{"a" * 10000}"}}'),
179179
Case(
180180
name="unicode",
181181
data={"unicode_key": "Hello 世界 🌍 émojis"},
@@ -236,11 +236,11 @@ def parametrize(cls, cases: list[Self]) -> MarkDecorator:
236236
SAMPLE_TUPLE: tuple[int, str, float] = (1, "two", 3.0)
237237

238238
TUPLE_CASES: PositiveCases = PositiveCases(
239-
Case(name="tuple", data={"tuple_key": SAMPLE_TUPLE}, json='{"tuple_key": [1, "two", 3.0]}'),
239+
Case(name="tuple", data={"str_key": SAMPLE_TUPLE}, json='{"str_key": [1, "two", 3.0]}'),
240240
Case(
241241
name="large-tuple",
242-
data={"large_tuple_key": (1, "two", 3.0) * 1000},
243-
json=f'{{"large_tuple_key": {json.dumps((1, "two", 3.0) * 1000)}}}',
242+
data={"str_key": (1, "two", 3.0) * 1000},
243+
json=f'{{"str_key": {json.dumps((1, "two", 3.0) * 1000)}}}',
244244
),
245245
case_type="tuple",
246246
)

key-value/key-value-sync/tests/code_gen/stores/keyring/test_keyring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ def test_not_unbounded(self, store: BaseStore): ...
3131
@override
3232
@pytest.mark.skipif(condition=detect_on_windows(), reason="Keyrings do not support large values on Windows")
3333
def test_get_large_put_get(self, store: BaseStore, data: dict[str, Any], json: str, round_trip: dict[str, Any]): # pyright: ignore[reportUnusedParameter]
34-
super().test_get_large_put_get(store, data, json, round_trip=data)
34+
super().test_get_large_put_get(store, data, json, round_trip=round_trip)

0 commit comments

Comments
 (0)