Skip to content

Add workflow invariant test to reject submissions for inactive challenge phases#4984

Open
Shubham-Chaprana wants to merge 2 commits into
Cloud-CV:masterfrom
Shubham-Chaprana:test-submission-workflow
Open

Add workflow invariant test to reject submissions for inactive challenge phases#4984
Shubham-Chaprana wants to merge 2 commits into
Cloud-CV:masterfrom
Shubham-Chaprana:test-submission-workflow

Conversation

@Shubham-Chaprana

@Shubham-Chaprana Shubham-Chaprana commented Feb 5, 2026

Copy link
Copy Markdown

This PR adds a workflow test for the submission endpoint to ensure
submissions are rejected when the challenge phase is inactive and that
no Submission object is created in this case.

The test hits the public API, sets up the minimal required domain objects
(challenge, phase, participant team), and verifies the rejection behavior
without relying on internal control flow.

Note

This branch includes a small test-related fix to avoid interactive behavior during CI.
The change is isolated and does not affect production behavior.

@Shubham-Chaprana

Copy link
Copy Markdown
Author

CI appears to be failing during dependency build (Cython wheel build), before the tests in this PR are run.
Mentioning in case its useful context.

@Shubham-Chaprana

Copy link
Copy Markdown
Author

I’ve added a follow-up invariant test (unregistered team submissions) building on this workflow test. It’s currently stacked on this PR and will be retargeted if this merges

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant