Skip to content

Commit 28e306a

Browse files
committed
2025-12-31 20:25:46 (Wed) > DW-Mac > derekwan
1 parent 03864c6 commit 28e306a

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

src/tests/test_subprocess.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -266,16 +266,15 @@ def test_main(self) -> None:
266266

267267
class TestGitClone:
268268
@throttle(delta=5 * MINUTE)
269-
def test_main(self, *, tmp_path: Path) -> None:
270-
git_clone("https://github.com/CogWorksBWSI/GitPracticeRepo", tmp_path)
269+
def test_main(self, *, git_repo_url: str, tmp_path: Path) -> None:
270+
git_clone(git_repo_url, tmp_path)
271271
assert (tmp_path / ".git").is_dir()
272272

273273
@throttle(delta=5 * MINUTE)
274-
def test_branch(self, *, tmp_path: Path) -> None:
275-
git_clone(
276-
"https://github.com/CogWorksBWSI/GitPracticeRepo", tmp_path, branch="branch"
277-
)
278-
assert (tmp_path / ".git").is_dir()
274+
def test_branch(self, *, git_repo_url: str, tmp_path: Path) -> None:
275+
git_clone(git_repo_url, tmp_path, branch="branch")
276+
result = git_branch_current(tmp_path)
277+
assert result == "branch"
279278

280279

281280
class TestGitCloneCmd:
@@ -1228,8 +1227,8 @@ def test_args(self) -> None:
12281227

12291228
class TestYieldGitRepo:
12301229
@throttle(delta=5 * MINUTE)
1231-
def test_main(self) -> None:
1232-
with yield_git_repo("https://github.com/CogWorksBWSI/GitPracticeRepo") as temp:
1230+
def test_main(self, *, git_repo_url: str) -> None:
1231+
with yield_git_repo(git_repo_url) as temp:
12331232
assert (temp / "README.md").is_file()
12341233

12351234

0 commit comments

Comments
 (0)