Skip to content

Commit

Permalink
switch to returning in fixtures without teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
DropD committed Feb 4, 2025
1 parent 0dfaea5 commit 1f26f5c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pathlib
import typing

import pytest

Expand Down Expand Up @@ -31,12 +30,12 @@ def minimal_config() -> models.ConfigWorkflow:


@pytest.fixture(params=ALL_CONFIG_CASES)
def config_case(request) -> typing.Iterator[str]:
def config_case(request) -> str:
return request.param


@pytest.fixture
def pprinter() -> typing.Iterator[pretty_print.PrettyPrinter]:
def pprinter() -> pretty_print.PrettyPrinter:
return pretty_print.PrettyPrinter()


Expand All @@ -49,7 +48,7 @@ def generate_config_paths(test_case: str):


@pytest.fixture
def config_paths(config_case) -> typing.Iterator[dict[str, pathlib.Path]]:
def config_paths(config_case) -> dict[str, pathlib.Path]:
return generate_config_paths(config_case)


Expand Down

0 comments on commit 1f26f5c

Please sign in to comment.