Skip to content

Commit

Permalink
chore: clean-out currently unused code from test_statetest
Browse files Browse the repository at this point in the history
  • Loading branch information
danceratopz committed Nov 4, 2024
1 parent 71c7003 commit bf0f91b
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/pytest_plugins/consume/direct/test_via_direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def test_blocktest( # noqa: D103

@pytest.fixture(scope="function")
def run_statetest(
run_single_test: bool,
test_case: TestCaseIndexFile | TestCaseStream,
fixture_consumer: FixtureConsumer,
fixture_path: Path,
Expand All @@ -49,8 +48,6 @@ def run_statetest(
"""
# TODO: Check if all required results have been tested and delete test result data if so.
# TODO: Can we group the tests appropriately so that this works more efficiently with xdist?
if run_single_test:
return
if fixture_path not in statetest_results:
json_result = fixture_consumer.consume_fixture(
test_case.format,
Expand All @@ -65,20 +62,8 @@ def run_statetest(
@fixture_format(StateFixture)
def test_statetest( # noqa: D103
test_case: TestCaseIndexFile | TestCaseStream,
fixture_consumer: FixtureConsumer,
run_single_test: bool,
fixture_path: Path,
test_dump_dir: Optional[Path],
):
if run_single_test:
fixture_name = re.escape(test_case.id)
fixture_consumer.consume_fixture(
test_case.format,
fixture_path,
fixture_name=fixture_name,
debug_output_path=test_dump_dir,
)
return
test_result = [
test_result
for test_result in statetest_results[fixture_path]
Expand Down

0 comments on commit bf0f91b

Please sign in to comment.