Skip to content

Commit 9fecd0c

Browse files
MarTrepodiclaude
andcommitted
fix(tests): use DataItems.SEGMENT1 in filtered get_game_data integration test
The comlink server rejects raw single-bit item values (HTTP 400) with a message recommending Segment1-4. Switch the filtered get_game_data integration test from DataItems.UNITS to DataItems.SEGMENT1 so it runs against a value the server accepts. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ba06465 commit 9fecd0c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/integration/test_async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async def test_get_guilds_by_name(async_comlink):
7272

7373
async def test_get_game_data_filtered(async_comlink):
7474
"""POST /data with DataItems filter returns game data subset."""
75-
result = await async_comlink.get_game_data(items=DataItems.UNITS)
75+
result = await async_comlink.get_game_data(items=DataItems.SEGMENT1)
7676
assert isinstance(result, dict)
7777
assert len(result) > 0
7878

tests/integration/test_sync_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def test_get_guilds_by_name(comlink):
7272

7373
def test_get_game_data_filtered(comlink):
7474
"""POST /data with DataItems filter returns game data subset."""
75-
result = comlink.get_game_data(items=DataItems.UNITS)
75+
result = comlink.get_game_data(items=DataItems.SEGMENT1)
7676
assert isinstance(result, dict)
7777
assert len(result) > 0
7878

0 commit comments

Comments
 (0)