File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 88import typing as t
99
1010import pytest
11+ from pytest_codspeed .plugin import BenchmarkFixture
1112from pytest_mock import MockerFixture
1213
1314from libvcs import exc
3031ProjectTestFactoryRemoteLazyExpected = t .Callable [..., dict [str , GitRemote ]]
3132
3233
33- @pytest .mark .benchmark
3434@pytest .mark .parametrize (
3535 # Postpone evaluation of options so fixture variables can interpolate
3636 ("constructor" , "lazy_constructor_options" ),
@@ -57,6 +57,7 @@ def test_repo_git_obtain_initial_commit_repo(
5757 tmp_path : pathlib .Path ,
5858 constructor : ProjectTestFactory ,
5959 lazy_constructor_options : ProjectTestFactoryLazyKwargs ,
60+ benchmark : BenchmarkFixture ,
6061) -> None :
6162 """Initial commit repos return 'initial'.
6263
@@ -70,7 +71,7 @@ def test_repo_git_obtain_initial_commit_repo(
7071 bare_dir = tmp_path / repo_name
7172 git_repo : GitSync = constructor (** lazy_constructor_options (** locals ()))
7273
73- git_repo .obtain ()
74+ benchmark ( lambda : git_repo .obtain () )
7475 assert git_repo .get_revision () == "initial"
7576
7677
You can’t perform that action at this time.
0 commit comments