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
5 changes: 5 additions & 0 deletions tests/benchmarking/test_benchmarking.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from grimp.adaptors.graph import ImportGraph
from grimp import PackageDependency, Route
import grimp
from copy import deepcopy


def _run_benchmark(benchmark, fn, *args, **kwargs):
Expand Down Expand Up @@ -392,3 +393,7 @@ def test_no_chains(self, large_graph, benchmark):
as_packages=True,
)
assert result == set()


def test_copy_graph(large_graph, benchmark):
_run_benchmark(benchmark, lambda: deepcopy(large_graph))
Loading