@@ -14,15 +14,13 @@ import (
1414func TestGitAutoLoad (t * testing.T ) {
1515 b := load (t , "./autoload_git" )
1616 bundle .Apply (context .Background (), b , mutator .LoadGitDetails ())
17- assert .True (t , b .Config .Bundle .Git .Inferred )
1817 validUrl := strings .Contains (b .Config .Bundle .Git .OriginURL , "/cli" ) || strings .Contains (b .Config .Bundle .Git .OriginURL , "/bricks" )
1918 assert .True (t , validUrl , "Expected URL to contain '/cli' or '/bricks', got %s" , b .Config .Bundle .Git .OriginURL )
2019}
2120
2221func TestGitManuallySetBranch (t * testing.T ) {
2322 b := loadTarget (t , "./autoload_git" , "production" )
2423 bundle .Apply (context .Background (), b , mutator .LoadGitDetails ())
25- assert .False (t , b .Config .Bundle .Git .Inferred )
2624 assert .Equal (t , "main" , b .Config .Bundle .Git .Branch )
2725 validUrl := strings .Contains (b .Config .Bundle .Git .OriginURL , "/cli" ) || strings .Contains (b .Config .Bundle .Git .OriginURL , "/bricks" )
2826 assert .True (t , validUrl , "Expected URL to contain '/cli' or '/bricks', got %s" , b .Config .Bundle .Git .OriginURL )
@@ -36,7 +34,6 @@ func TestGitBundleBranchValidation(t *testing.T) {
3634
3735 b := load (t , "./git_branch_validation" )
3836 bundle .Apply (context .Background (), b , mutator .LoadGitDetails ())
39- assert .False (t , b .Config .Bundle .Git .Inferred )
4037 assert .Equal (t , "feature-a" , b .Config .Bundle .Git .Branch )
4138 assert .Equal (t , "feature-b" , b .Config .Bundle .Git .ActualBranch )
4239
0 commit comments