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

2 Commits

Author SHA256 Message Date
Andrii Nikitin
a814c4ce24 t: Add status of tests to test-plan.md 2026-02-23 11:32:44 +01:00
Andrii Nikitin
aadc7f9d41 t: Add integration test for project PR labels
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.
2026-02-23 09:38:14 +01:00