1.0.2 - fix network settings, permissions and branding
Wydanie WGTools-Extended / release (push) Successful in 14s

This commit is contained in:
asminme committed 2026-10-30 02:14:52 +01:00
1 parent 9c23169339
commit aadc19341d
18 files changed
+241 -80

No files matched your search

+2
View File
@@ -9,6 +9,7 @@ from scripts import gitea_release
def test_release_creates_draft_uploads_and_publishes(tmp_path, monkeypatch):
monkeypatch.chdir(tmp_path)
Path('VERSION').write_text('1.2.3', encoding='utf-8')
Path('RELEASE_NOTES.md').write_text('Fixes network settings.', encoding='utf-8')
for key, value in {'GITHUB_REF_NAME':'v1.2.3', 'GITHUB_SERVER_URL':'https://git.example', 'GITHUB_REPOSITORY':'owner/project', 'RELEASE_TOKEN':'test-token'}.items():
monkeypatch.setenv(key, value)
calls = []
@@ -28,6 +29,7 @@ def test_release_creates_draft_uploads_and_publishes(tmp_path, monkeypatch):
gitea_release.main()
assert [r.method for r in calls] == ['POST', 'POST', 'PATCH']
assert json.loads(calls[0].data)['draft'] is True
assert json.loads(calls[0].data)['body'] == 'Fixes network settings.'
assert b'test archive' in calls[1].data
assert json.loads(calls[2].data)['draft'] is False