Merge pull request #2480 from Molecule-AI/chore/runtime-wedge-dedup-fixture

chore(tests): drop redundant local _reset fixture from test_runtime_wedge
This commit is contained in:
Hongming Wang 2026-05-02 01:33:31 +00:00 committed by GitHub
commit 88b156a3bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,21 +5,15 @@ to its template repo without breaking heartbeat.
The behavior is identical to the prior in-executor implementation; tests
pin the contract so the re-export shim in claude_sdk_executor.py can
later be deleted without surprise."""
import pytest
later be deleted without surprise.
Cross-test isolation is provided by the autouse
`_reset_runtime_wedge_between_tests` fixture in workspace/tests/conftest.py
this file does not need a local reset fixture.
"""
import runtime_wedge
@pytest.fixture(autouse=True)
def _reset():
"""Each test starts with a clean wedge state — production wedges are
sticky-per-process, but cross-test bleed would couple unrelated cases."""
runtime_wedge.reset_for_test()
yield
runtime_wedge.reset_for_test()
class TestRuntimeWedge:
def test_starts_unwedged(self):
assert runtime_wedge.is_wedged() is False