feat(#1239): Update Gitea and Forgejo due to API changes from initial cut (#1255)

feat(#1239): first cut at Gitea backups silently failing after 1st run
feat(#1239): Added Token Scope for Forgejo edge case. Also included: test coverage for fixes
This commit is contained in:
BurntOutHylian
2026-05-11 12:27:41 +02:00
committed by GitHub
parent 90c3efece9
commit 7afb303ffd
7 changed files with 1350 additions and 203 deletions
@@ -164,9 +164,7 @@ class TestGitHubBackupConfigAPI:
@pytest.mark.asyncio
@pytest.mark.integration
async def test_update_config_rejects_disabling_insecure_http_for_stored_http_url(
self, async_client: AsyncClient
):
async def test_update_config_rejects_disabling_insecure_http_for_stored_http_url(self, async_client: AsyncClient):
"""Verify PATCH rejects leaving a stored HTTP URL without explicit insecure-HTTP allowance."""
create_data = {
"repository_url": "http://git.example.com/test/httprepo",