@@ -266,16 +266,15 @@ def test_main(self) -> None:
266266
267267class 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
281280class TestGitCloneCmd :
@@ -1228,8 +1227,8 @@ def test_args(self) -> None:
12281227
12291228class 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