Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading