Skip to content

Commit c7e4767

Browse files
committed
Fix GitHub release page unittest usage of release ID
Signed-off-by: Tobias Wolf <wolf@b1-systems.de> On-behalf-of: <tobias.wolf@sap.com>
1 parent fc5170a commit c7e4767

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

tests/github/test_github_script.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff 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
],

0 commit comments

Comments
 (0)