Skip to content

Commit 53c8de0

Browse files
committed
!squash pytest plugin test
1 parent 75fde66 commit 53c8de0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tests/test_pytest_plugin.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def test_git_remote_repo(
117117
monkeypatch: pytest.MonkeyPatch,
118118
tmp_path: pathlib.Path,
119119
) -> None:
120-
"""Tests for libvcs pytest plugin at large."""
120+
"""Tests for libvcs pytest plugin git configuration."""
121121
monkeypatch.setenv("HOME", str(tmp_path))
122122

123123
# Initialize variables
@@ -137,6 +137,10 @@ def test_git_remote_repo(
137137
import pathlib
138138
import pytest
139139
140+
@pytest.fixture(scope="session")
141+
def vcs_email() -> str:
142+
143+
140144
@pytest.fixture(autouse=True)
141145
def setup(
142146
request: pytest.FixtureRequest,
@@ -181,6 +185,12 @@ def test_git_bare_repo_sync_and_commit(
181185
)
182186
183187
assert git_repo.get_revision() != "initial"
188+
189+
last_committer_email = git_repo.cmd.run(["log", "-1", "--pretty=format:%ae"])
190+
191+
assert last_committer_email == "[email protected]", (
192+
'Email should use the override from the "vcs_email" fixture'
193+
)
184194
""",
185195
),
186196
}

0 commit comments

Comments
 (0)