Skip to content

Commit

Permalink
Merge pull request #172 from seddonym/fix-pedantic-typo
Browse files Browse the repository at this point in the history
Fix typo in benchmarking tests
  • Loading branch information
seddonym authored Jan 15, 2025
2 parents 81daa0d + b361863 commit 957ff81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/benchmarking/test_benchmarking.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_build_django_uncached(benchmark):
In this benchmark, the cache is turned off.
"""
fn = lambda: grimp.build_graph("django", cache_dir=None)
if hasattr(benchmark, "pendantic"):
if hasattr(benchmark, "pedantic"):
# Running with pytest-benchmark
benchmark.pedantic(fn, rounds=3)
else:
Expand All @@ -59,7 +59,7 @@ def test_build_django_from_cache(benchmark):
grimp.build_graph("django")

fn = lambda: grimp.build_graph("django")
if hasattr(benchmark, "pendantic"):
if hasattr(benchmark, "pedantic"):
# Running with pytest-benchmark
benchmark.pedantic(fn, rounds=3)
else:
Expand All @@ -78,7 +78,7 @@ def test_top_level_large_graph(large_graph, benchmark):

def test_deep_layers_large_graph(large_graph, benchmark):
fn = lambda: large_graph.find_illegal_dependencies_for_layers(layers=DEEP_LAYERS)
if hasattr(benchmark, "pendantic"):
if hasattr(benchmark, "pedantic"):
# Running with pytest-benchmark
benchmark.pedantic(fn, rounds=3)
else:
Expand Down

0 comments on commit 957ff81

Please sign in to comment.