Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mkly committed Feb 2, 2024
1 parent 70fa14f commit edfa39c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/templates/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def _benchmark_score() -> BenchmarkScore:
def benchmark_score() -> BenchmarkScore:
return _benchmark_score()


@pytest.fixture()
def grouped_benchmark_scores() -> dict[str, list[BenchmarkScore]]:
benchmark_scores_dict = {}
Expand All @@ -42,13 +43,15 @@ def grouped_benchmark_scores() -> dict[str, list[BenchmarkScore]]:
benchmark_scores_dict[benchmark_definition] = grouped_benchmark_scores_list
return benchmark_scores_dict


@pytest.fixture()
def template_env() -> Environment:
template_dir = pathlib.Path(__file__).parent.parent.parent / "src" / "coffee" / "templates"
env = Environment(loader=FileSystemLoader(template_dir))
env.filters["display_stars"] = display_stars
return env


@pytest.fixture()
def stars_description() -> dict[int, dict[str, str]]:
return STARS_DESCRIPTION

0 comments on commit edfa39c

Please sign in to comment.