Skip to content

Commit 6ee6b77

Browse files
committed
!squash pytest plugin more aggressive session scoping
1 parent 21ed78a commit 6ee6b77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libvcs/pytest_plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def empty_git_repo(
326326
)
327327

328328

329-
@pytest.fixture
329+
@pytest.fixture(scope="session")
330330
@skip_if_git_missing
331331
def create_git_remote_bare_repo(
332332
remote_repos_path: pathlib.Path,
@@ -355,7 +355,7 @@ def fn(
355355
return fn
356356

357357

358-
@pytest.fixture
358+
@pytest.fixture(scope="session")
359359
@skip_if_git_missing
360360
def create_git_remote_repo(
361361
remote_repos_path: pathlib.Path,
@@ -397,7 +397,7 @@ def git_remote_repo_single_commit_post_init(remote_repo_path: pathlib.Path) -> N
397397
run(["git", "commit", "-m", "test file for dummyrepo"], cwd=remote_repo_path)
398398

399399

400-
@pytest.fixture
400+
@pytest.fixture(scope="session")
401401
@skip_if_git_missing
402402
def git_remote_repo(
403403
create_git_remote_repo: CreateRepoPytestFixtureFn,

0 commit comments

Comments
 (0)