1212from infrahub_sdk .uuidt import UUIDT
1313from pytest_httpx ._httpx_mock import HTTPXMock
1414
15- from infrahub import config
1615from infrahub .core .branch import Branch
1716from infrahub .core .constants import InfrahubKind
1817from infrahub .core .registry import registry
@@ -1107,10 +1106,7 @@ async def test_get_filtered_remote_branches__no_import_sync_branch_names(git_rep
11071106 assert sorted (filtered_remote_branches .keys ()) == ["branch01" , "branch02" , "clean-branch" , "main" ]
11081107
11091108
1110- async def test_new_repo_has_config (git_upstream_repo_01 : dict [str , str | Path ], git_repos_dir : Path ):
1111- config .
SETTINGS .
git .
user_email = "[email protected] " 1112- config .SETTINGS .git .user_name = "Test User"
1113-
1109+ async def test_new_repo_has_config (git_upstream_repo_01 : dict [str , str | Path ], git_repos_dir : Path , git_user_config ):
11141110 repo = await InfrahubRepository .new (
11151111 id = UUIDT .new (),
11161112 name = git_upstream_repo_01 ["name" ],
@@ -1127,6 +1123,3 @@ async def test_new_repo_has_config(git_upstream_repo_01: dict[str, str | Path],
11271123 with repo .get_git_repo_main ().config_reader () as git_config :
11281124 assert git_config .get_value ("user" , "name" ) == "Test User"
11291125 assert git_config .
get_value (
"user" ,
"email" )
== "[email protected] " 1130-
1131- config .SETTINGS .git .user_email = None
1132- config .SETTINGS .git .user_name = None
0 commit comments