File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ def test_script_upload_needs_github_token(
145145 "--repo" ,
146146 "gardenlinux" ,
147147 "--release_id" ,
148- TEST_GARDENLINUX_RELEASE ,
148+ "1" ,
149149 "--file_path" ,
150150 str (artifact_for_upload ),
151151 "--dry-run" ,
@@ -189,6 +189,12 @@ def test_script_upload_dry_run(
189189 status_code = 200 ,
190190 )
191191
192+ m .get (
193+ "//api.github.com:443/repos/gardenlinux/gardenlinux/releases/1" ,
194+ json = RELEASE_JSON ,
195+ status_code = 200 ,
196+ )
197+
192198 m .get (
193199 f"//api.github.com:443/repos/gardenlinux/gardenlinux/releases/tags/{ TEST_GARDENLINUX_RELEASE } " ,
194200 json = RELEASE_JSON ,
@@ -206,7 +212,7 @@ def test_script_upload_dry_run(
206212 "--repo" ,
207213 "gardenlinux" ,
208214 "--release_id" ,
209- TEST_GARDENLINUX_RELEASE ,
215+ "1" ,
210216 "--file_path" ,
211217 str (artifact_for_upload ),
212218 "--dry-run" ,
@@ -265,7 +271,7 @@ def test_script_upload_inaccessible_file(
265271 "--repo" ,
266272 "gardenlinux" ,
267273 "--release_id" ,
268- TEST_GARDENLINUX_RELEASE ,
274+ "1" ,
269275 "--file_path" ,
270276 str (artifact_for_upload ),
271277 ],
@@ -317,7 +323,7 @@ def test_script_upload(
317323 "--repo" ,
318324 "gardenlinux" ,
319325 "--release_id" ,
320- TEST_GARDENLINUX_RELEASE ,
326+ "1" ,
321327 "--file_path" ,
322328 str (artifact_for_upload ),
323329 ],
You can’t perform that action at this time.
0 commit comments