@@ -84,28 +84,26 @@ def test_urlpathjoin(url: str, expected_result: str) -> None:
8484 assert result == expected_result
8585
8686
87- class TestBackendGit :
88- @pytest .mark .skip_git_mock
89- def test_clone_success (self , tmp_path : Path , temp_repo : TempRepoFixture ) -> None :
90- source_root_dir = tmp_path / "test-repo"
91- Git .clone (
92- url = temp_repo .path .as_uri (), source_root = source_root_dir , name = "clone-test"
93- )
94-
95- target_dir = source_root_dir / "clone-test"
96- assert (target_dir / ".git" ).is_dir ()
97-
98- @pytest .mark .skip_git_mock
99- def test_short_sha_not_in_head (
100- self , tmp_path : Path , temp_repo : TempRepoFixture
101- ) -> None :
102- source_root_dir = tmp_path / "test-repo"
103- Git .clone (
104- url = temp_repo .path .as_uri (),
105- revision = temp_repo .middle_commit [:6 ],
106- name = "clone-test" ,
107- source_root = source_root_dir ,
108- )
109-
110- target_dir = source_root_dir / "clone-test"
111- assert (target_dir / ".git" ).is_dir ()
87+ @pytest .mark .skip_git_mock
88+ def test_clone_success (tmp_path : Path , temp_repo : TempRepoFixture ) -> None :
89+ source_root_dir = tmp_path / "test-repo"
90+ Git .clone (
91+ url = temp_repo .path .as_uri (), source_root = source_root_dir , name = "clone-test"
92+ )
93+
94+ target_dir = source_root_dir / "clone-test"
95+ assert (target_dir / ".git" ).is_dir ()
96+
97+
98+ @pytest .mark .skip_git_mock
99+ def test_short_sha_not_in_head (tmp_path : Path , temp_repo : TempRepoFixture ) -> None :
100+ source_root_dir = tmp_path / "test-repo"
101+ Git .clone (
102+ url = temp_repo .path .as_uri (),
103+ revision = temp_repo .middle_commit [:6 ],
104+ name = "clone-test" ,
105+ source_root = source_root_dir ,
106+ )
107+
108+ target_dir = source_root_dir / "clone-test"
109+ assert (target_dir / ".git" ).is_dir ()
0 commit comments