File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 8
8
import typing as t
9
9
10
10
import pytest
11
+ from pytest_codspeed .plugin import BenchmarkFixture
11
12
from pytest_mock import MockerFixture
12
13
13
14
from libvcs import exc
30
31
ProjectTestFactoryRemoteLazyExpected = t .Callable [..., dict [str , GitRemote ]]
31
32
32
33
33
- @pytest .mark .benchmark
34
34
@pytest .mark .parametrize (
35
35
# Postpone evaluation of options so fixture variables can interpolate
36
36
("constructor" , "lazy_constructor_options" ),
@@ -57,6 +57,7 @@ def test_repo_git_obtain_initial_commit_repo(
57
57
tmp_path : pathlib .Path ,
58
58
constructor : ProjectTestFactory ,
59
59
lazy_constructor_options : ProjectTestFactoryLazyKwargs ,
60
+ benchmark : BenchmarkFixture ,
60
61
) -> None :
61
62
"""Initial commit repos return 'initial'.
62
63
@@ -70,7 +71,7 @@ def test_repo_git_obtain_initial_commit_repo(
70
71
bare_dir = tmp_path / repo_name
71
72
git_repo : GitSync = constructor (** lazy_constructor_options (** locals ()))
72
73
73
- git_repo .obtain ()
74
+ benchmark ( lambda : git_repo .obtain () )
74
75
assert git_repo .get_revision () == "initial"
75
76
76
77
You can’t perform that action at this time.
0 commit comments