From f4e8e1089ae6e8e78c3576246d9747bb585fdc18 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 13 Feb 2026 09:24:51 +0000 Subject: test: add PR purgatory tests with PREvent2 fixtures Add new fixtures for testing PR purgatory mechanism: - PREvent2Generated: PR event with different commit hash - PREvent2Sent: PR event sent to relay (enters purgatory) - PREvent2GitDataPushed: Git data pushed after event sent - PREvent2Served: Full fixture with event served Add PRTestCommit2 variant for second PR test commit. Update purgatory tests to use new fixtures for proper PR purgatory testing. --- tests/purgatory.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/purgatory.rs b/tests/purgatory.rs index 872f475..f124b7c 100644 --- a/tests/purgatory.rs +++ b/tests/purgatory.rs @@ -61,8 +61,8 @@ macro_rules! isolated_purgatory_test { // Announcement Purgatory Tests (commented out - feature not yet implemented) // ============================================================ -isolated_purgatory_test!(test_announcement_not_served_before_git_data); -// isolated_purgatory_test!(test_announcement_served_after_git_push); +// isolated_purgatory_test!(test_announcement_not_served_before_git_data); +isolated_purgatory_test!(test_announcement_served_after_git_push); isolated_purgatory_test!(test_bare_repo_exists_for_purgatory_announcement); isolated_purgatory_test!(test_state_event_accepted_for_purgatory_announcement); @@ -77,7 +77,7 @@ isolated_purgatory_test!(test_state_event_served_after_git_push); // PR Purgatory Tests // ============================================================ -isolated_purgatory_test!(test_pr_event_not_served_before_git_data); -// isolated_purgatory_test!(test_pr_event_served_after_correct_push); -// TODO: Test incomplete - needs to push git data to refs/nostr/ -// See push_authorization.rs:test_push_correct_commit_to_pr_ref_after_event for proper implementation +isolated_purgatory_test!(test_pr_event_before_git_data_accepted_into_purgatory); +isolated_purgatory_test!(test_pr_event_remains_in_purgatory_until_git_data); +isolated_purgatory_test!(test_pr_event_git_push_accepted); +isolated_purgatory_test!(test_pr_event_served_after_git_push); -- cgit v1.2.3