2626if t .TYPE_CHECKING :
2727 from pytest_mock import MockerFixture
2828
29- from libvcs .pytest_plugin import CreateRepoPytestFixtureFn
29+ from libvcs .pytest_plugin import CreateRepoFn
3030
3131if not shutil .which ("git" ):
3232 pytestmark = pytest .mark .skip (reason = "git is not available" )
@@ -182,7 +182,7 @@ def test_repo_update_handle_cases(
182182)
183183def test_repo_update_stash_cases (
184184 tmp_path : pathlib .Path ,
185- create_git_remote_bare_repo : CreateRepoPytestFixtureFn ,
185+ create_git_remote_bare_repo : CreateRepoFn ,
186186 mocker : MockerFixture ,
187187 has_untracked_files : bool ,
188188 needs_stash : bool ,
@@ -551,7 +551,7 @@ def test_remotes_update_repo(
551551 lazy_constructor_options : ProjectTestFactoryLazyKwargs ,
552552 lazy_remote_dict : ProjectTestFactoryRemoteLazyExpected ,
553553 lazy_remote_expected : ProjectTestFactoryRemoteLazyExpected ,
554- create_git_remote_repo : CreateRepoPytestFixtureFn ,
554+ create_git_remote_repo : CreateRepoFn ,
555555) -> None :
556556 """Tests GitSync with updated remotes."""
557557 repo_name = "myrepo"
@@ -911,7 +911,7 @@ def test_GitRemote__from_stdout_c(fixture: str, expected_result: GitStatus) -> N
911911
912912
913913def test_repo_git_remote_checkout (
914- create_git_remote_repo : CreateRepoPytestFixtureFn ,
914+ create_git_remote_repo : CreateRepoFn ,
915915 tmp_path : pathlib .Path ,
916916 projects_path : pathlib .Path ,
917917) -> None :
@@ -930,7 +930,7 @@ def test_repo_git_remote_checkout(
930930
931931
932932def test_update_repo_success_returns_sync_result (
933- create_git_remote_bare_repo : CreateRepoPytestFixtureFn ,
933+ create_git_remote_bare_repo : CreateRepoFn ,
934934 tmp_path : pathlib .Path ,
935935) -> None :
936936 """Test that a successful update_repo() returns SyncResult with ok=True."""
@@ -957,7 +957,7 @@ def test_update_repo_success_returns_sync_result(
957957
958958
959959def test_update_repo_fetch_failure_returns_sync_result (
960- create_git_remote_bare_repo : CreateRepoPytestFixtureFn ,
960+ create_git_remote_bare_repo : CreateRepoFn ,
961961 tmp_path : pathlib .Path ,
962962) -> None :
963963 """Test that a fetch failure in update_repo() returns SyncResult with error."""
@@ -998,7 +998,7 @@ def test_update_repo_fetch_failure_returns_sync_result(
998998
999999
10001000def test_update_repo_checkout_failure_returns_sync_result (
1001- create_git_remote_bare_repo : CreateRepoPytestFixtureFn ,
1001+ create_git_remote_bare_repo : CreateRepoFn ,
10021002 tmp_path : pathlib .Path ,
10031003) -> None :
10041004 """Test that a checkout failure in update_repo() returns SyncResult with error."""
@@ -1031,7 +1031,7 @@ def test_update_repo_checkout_failure_returns_sync_result(
10311031
10321032
10331033def test_update_repo_rev_list_head_failure_returns_sync_result (
1034- create_git_remote_bare_repo : CreateRepoPytestFixtureFn ,
1034+ create_git_remote_bare_repo : CreateRepoFn ,
10351035 tmp_path : pathlib .Path ,
10361036) -> None :
10371037 """update_repo() records rev-list HEAD failure in SyncResult."""
@@ -1065,7 +1065,7 @@ def test_update_repo_rev_list_head_failure_returns_sync_result(
10651065
10661066
10671067def test_update_repo_submodule_failure_recorded (
1068- create_git_remote_bare_repo : CreateRepoPytestFixtureFn ,
1068+ create_git_remote_bare_repo : CreateRepoFn ,
10691069 tmp_path : pathlib .Path ,
10701070 mocker : MockerFixture ,
10711071) -> None :
@@ -1118,7 +1118,7 @@ def test_update_repo_submodule_failure_recorded(
11181118
11191119
11201120def test_update_repo_symbolic_ref_failure_recorded (
1121- create_git_remote_bare_repo : CreateRepoPytestFixtureFn ,
1121+ create_git_remote_bare_repo : CreateRepoFn ,
11221122 tmp_path : pathlib .Path ,
11231123) -> None :
11241124 """Test that symbolic_ref failure on detached HEAD is recorded in SyncResult.
@@ -1158,7 +1158,7 @@ def test_update_repo_symbolic_ref_failure_recorded(
11581158
11591159
11601160def test_update_repo_remote_ref_not_found_recorded (
1161- create_git_remote_bare_repo : CreateRepoPytestFixtureFn ,
1161+ create_git_remote_bare_repo : CreateRepoFn ,
11621162 tmp_path : pathlib .Path ,
11631163) -> None :
11641164 """Test that GitRemoteRefNotFound is caught and recorded in SyncResult.
@@ -1200,7 +1200,7 @@ def test_update_repo_remote_ref_not_found_recorded(
12001200
12011201
12021202def test_update_repo_obtain_failure_recorded (
1203- create_git_remote_bare_repo : CreateRepoPytestFixtureFn ,
1203+ create_git_remote_bare_repo : CreateRepoFn ,
12041204 tmp_path : pathlib .Path ,
12051205 mocker : MockerFixture ,
12061206) -> None :
@@ -1237,7 +1237,7 @@ def test_update_repo_obtain_failure_recorded(
12371237
12381238
12391239def test_update_repo_set_remotes_failure_recorded (
1240- create_git_remote_bare_repo : CreateRepoPytestFixtureFn ,
1240+ create_git_remote_bare_repo : CreateRepoFn ,
12411241 tmp_path : pathlib .Path ,
12421242 mocker : MockerFixture ,
12431243) -> None :
@@ -1281,7 +1281,7 @@ def test_update_repo_set_remotes_failure_recorded(
12811281
12821282
12831283def test_update_repo_remote_name_failure_recorded (
1284- create_git_remote_bare_repo : CreateRepoPytestFixtureFn ,
1284+ create_git_remote_bare_repo : CreateRepoFn ,
12851285 tmp_path : pathlib .Path ,
12861286 mocker : MockerFixture ,
12871287) -> None :
@@ -1324,7 +1324,7 @@ def test_update_repo_remote_name_failure_recorded(
13241324
13251325
13261326def test_update_repo_status_failure_recorded (
1327- create_git_remote_bare_repo : CreateRepoPytestFixtureFn ,
1327+ create_git_remote_bare_repo : CreateRepoFn ,
13281328 tmp_path : pathlib .Path ,
13291329 mocker : MockerFixture ,
13301330) -> None :
@@ -1385,7 +1385,7 @@ def status_side_effect(**kwargs: t.Any) -> str:
13851385
13861386
13871387def test_update_repo_stash_save_failure_recorded (
1388- create_git_remote_bare_repo : CreateRepoPytestFixtureFn ,
1388+ create_git_remote_bare_repo : CreateRepoFn ,
13891389 tmp_path : pathlib .Path ,
13901390 mocker : MockerFixture ,
13911391) -> None :
@@ -1451,7 +1451,7 @@ def status_side_effect(**kwargs: t.Any) -> str:
14511451
14521452
14531453def test_update_repo_rebase_invalid_upstream_recorded (
1454- create_git_remote_bare_repo : CreateRepoPytestFixtureFn ,
1454+ create_git_remote_bare_repo : CreateRepoFn ,
14551455 tmp_path : pathlib .Path ,
14561456 mocker : MockerFixture ,
14571457) -> None :
@@ -1519,7 +1519,7 @@ def status_side_effect(**kwargs: t.Any) -> str:
15191519
15201520
15211521def test_update_repo_rebase_conflict_recorded (
1522- create_git_remote_bare_repo : CreateRepoPytestFixtureFn ,
1522+ create_git_remote_bare_repo : CreateRepoFn ,
15231523 tmp_path : pathlib .Path ,
15241524 mocker : MockerFixture ,
15251525) -> None :
@@ -1587,7 +1587,7 @@ def status_side_effect(**kwargs: t.Any) -> str:
15871587
15881588
15891589def test_update_repo_stash_pop_failure_recorded (
1590- create_git_remote_bare_repo : CreateRepoPytestFixtureFn ,
1590+ create_git_remote_bare_repo : CreateRepoFn ,
15911591 tmp_path : pathlib .Path ,
15921592 mocker : MockerFixture ,
15931593) -> None :
0 commit comments