From 92302a6fe6b0afefa915c6cff37fd4e8eba03c36 Mon Sep 17 00:00:00 2001 From: banteg <4562643+banteg@users.noreply.github.com> Date: Sun, 4 Jan 2026 03:50:21 +0400 Subject: [PATCH] test(fixtures): normalize fixture names --- ...eamjson_session.jsonl => claude_stream_json_session.jsonl} | 0 ...pencode-run-json.fixture.jsonl => opencode_run_json.jsonl} | 0 tests/test_claude_runner.py | 4 ++-- tests/test_claude_schema.py | 2 +- tests/test_opencode_schema.py | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename tests/fixtures/{claude_streamjson_session.jsonl => claude_stream_json_session.jsonl} (100%) rename tests/fixtures/{opencode-run-json.fixture.jsonl => opencode_run_json.jsonl} (100%) diff --git a/tests/fixtures/claude_streamjson_session.jsonl b/tests/fixtures/claude_stream_json_session.jsonl similarity index 100% rename from tests/fixtures/claude_streamjson_session.jsonl rename to tests/fixtures/claude_stream_json_session.jsonl diff --git a/tests/fixtures/opencode-run-json.fixture.jsonl b/tests/fixtures/opencode_run_json.jsonl similarity index 100% rename from tests/fixtures/opencode-run-json.fixture.jsonl rename to tests/fixtures/opencode_run_json.jsonl diff --git a/tests/test_claude_runner.py b/tests/test_claude_runner.py index 72d80f1..c8c21a8 100644 --- a/tests/test_claude_runner.py +++ b/tests/test_claude_runner.py @@ -66,7 +66,7 @@ def test_translate_success_fixture() -> None: state = ClaudeStreamState() events: list = [] for event in _load_fixture( - "claude_streamjson_session.jsonl", + "claude_stream_json_session.jsonl", session_id="aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", ): events.extend( @@ -115,7 +115,7 @@ def test_translate_error_fixture_permission_denials() -> None: state = ClaudeStreamState() events: list = [] for event in _load_fixture( - "claude_streamjson_session.jsonl", + "claude_stream_json_session.jsonl", session_id="bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb", ): events.extend( diff --git a/tests/test_claude_schema.py b/tests/test_claude_schema.py index 23012e6..8bee334 100644 --- a/tests/test_claude_schema.py +++ b/tests/test_claude_schema.py @@ -32,7 +32,7 @@ def _decode_fixture(name: str) -> list[str]: @pytest.mark.parametrize( "fixture", [ - "claude_streamjson_session.jsonl", + "claude_stream_json_session.jsonl", ], ) def test_claude_schema_parses_fixture(fixture: str) -> None: diff --git a/tests/test_opencode_schema.py b/tests/test_opencode_schema.py index 4eaeaff..63157e6 100644 --- a/tests/test_opencode_schema.py +++ b/tests/test_opencode_schema.py @@ -32,7 +32,7 @@ def _decode_fixture(name: str) -> list[str]: "opencode_stream_success.jsonl", "opencode_stream_success_no_reason.jsonl", "opencode_stream_error.jsonl", - "opencode-run-json.fixture.jsonl", + "opencode_run_json.jsonl", ], ) def test_opencode_schema_parses_fixture(fixture: str) -> None: