[TESTING] Integration test: Gitea API round-trip (create/read/close issue) #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Build an integration test that exercises the full Gitea API lifecycle: create an issue, read it back, add a comment, close it, and verify the final state. This validates that Bezalel's Gitea integration works end-to-end.
Motivation
Unit tests check individual pieces. Integration tests check that the pieces work together. If the Gitea API token expires, permissions change, or the API format changes, this test catches it immediately.
Acceptance Criteria
scripts/tests/test_gitea_integration.py[TEST] Integration test - {timestamp}and a bodytest-artifactlabel)@pytest.mark.integrationso it can be run separatelyImplementation Notes
requestslibrary for HTTP callspytest.fixturewithyieldfor setup/teardownDefinition of Done
pytest scripts/tests/test_gitea_integration.py -v -m integrationpasses and validates the complete Gitea API round-trip.