@@ -44,7 +44,7 @@ def fixture(self, directory: str) -> tuple[Path, Path]:
4444 "name" : "example" ,
4545 "source" : "upstream/vendor/example.yml" ,
4646 "patches" : ["patches/example.yml.patch" ],
47- "destination" : "templates/example.yml" ,
47+ "destination" : "workflow- templates/example.yml" ,
4848 }
4949 ]
5050 }
@@ -57,7 +57,7 @@ def test_sync_applies_patch(self) -> None:
5757 with tempfile .TemporaryDirectory () as directory :
5858 root , manifest = self .fixture (directory )
5959 report = sync (load_templates (manifest ), root )
60- rendered = (root / "templates/example.yml" ).read_text (encoding = "utf-8" )
60+ rendered = (root / "workflow- templates/example.yml" ).read_text (encoding = "utf-8" )
6161 self .assertIn ("name: Patched example" , rendered )
6262 self .assertTrue (report ["ok" ])
6363 self .assertEqual (report ["updated" ], 1 )
@@ -90,13 +90,13 @@ def test_sync_reports_failure_and_continues(self) -> None:
9090 "name" : "good" ,
9191 "source" : "upstream/vendor/good.yml" ,
9292 "patches" : [],
93- "destination" : "templates/good.yml" ,
93+ "destination" : "workflow- templates/good.yml" ,
9494 },
9595 {
9696 "name" : "broken" ,
9797 "source" : "upstream/vendor/broken.yml" ,
9898 "patches" : ["patches/broken.yml.patch" ],
99- "destination" : "templates/broken.yml" ,
99+ "destination" : "workflow- templates/broken.yml" ,
100100 },
101101 ]
102102 }
@@ -110,10 +110,10 @@ def test_sync_reports_failure_and_continues(self) -> None:
110110 self .assertEqual (report ["updated" ], 1 )
111111 self .assertEqual (report ["failed" ], 1 )
112112 self .assertEqual (
113- (root / "templates/good.yml" ).read_text (encoding = "utf-8" ),
113+ (root / "workflow- templates/good.yml" ).read_text (encoding = "utf-8" ),
114114 "name: Good\n " ,
115115 )
116- self .assertFalse ((root / "templates/broken.yml" ).exists ())
116+ self .assertFalse ((root / "workflow- templates/broken.yml" ).exists ())
117117 failed = next (
118118 item for item in report ["templates" ] if item ["status" ] == "failed"
119119 )
@@ -139,7 +139,7 @@ def test_write_report(self) -> None:
139139 def test_check_detects_rendered_drift (self ) -> None :
140140 with tempfile .TemporaryDirectory () as directory :
141141 root , manifest = self .fixture (directory )
142- destination = root / "templates/example.yml"
142+ destination = root / "workflow- templates/example.yml"
143143 destination .parent .mkdir (parents = True )
144144 destination .write_text ("name: stale\n " , encoding = "utf-8" )
145145
@@ -157,7 +157,7 @@ def test_rejects_unsafe_paths(self) -> None:
157157 "name" : "example" ,
158158 "source" : "../example.yml" ,
159159 "patches" : [],
160- "destination" : "templates/example.yml" ,
160+ "destination" : "workflow- templates/example.yml" ,
161161 }
162162 ]
163163 }
0 commit comments