Add integration test for project PR labels #134

Merged
andriinikitin merged 2 commits from andriinikitin/autogits:t_add_label_test into main 2026-02-23 11:45:50 +01:00
Member

Also add status column to the table in test-plan.md

Also add status column to the table in test-plan.md
andriinikitin added 2 commits 2026-02-23 11:04:14 +01:00
Itroduces a new integration test to verify the automatic application of
labels to project git pull requests based on the workflow configuration.

Changes:
- Add `create_label` method to Gitea API client for test setup.
- Configure a new `label-test` branch with `StagingAuto` and `ReviewPending`
  label mappings in `conftest.py`.
- Update `setup_users_from_config` to correctly handle `*` reviewer prefix.
- Ensure required labels are created during global test setup.
- Add `staging_bot_client` fixture to simulate bot approvals.
- Enable monitoring for the `label-test` branch in `workflow-pr` service.
- Implement `tests/workflow_pr_label_test.py` to verify label logic.
- Mark `review/Pending` check as xfail due to current implementation issues.
andriinikitin changed title from Add integration test for project PR labels to WIP: Add integration test for project PR labels 2026-02-23 11:04:48 +01:00
andriinikitin force-pushed t_add_label_test from 509123f2ee to 1bee739610 2026-02-23 11:05:34 +01:00 Compare
andriinikitin force-pushed t_add_label_test from 1bee739610 to a814c4ce24 2026-02-23 11:32:51 +01:00 Compare
andriinikitin changed title from WIP: Add integration test for project PR labels to Add integration test for project PR labels 2026-02-23 11:45:35 +01:00
andriinikitin merged commit a814c4ce24 into main 2026-02-23 11:45:50 +01:00
andriinikitin deleted branch t_add_label_test 2026-02-23 11:45:51 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: git-workflow/autogits#134