test: add regression for unexpected migration prompt failure

ISSUES CLOSED: #7503
This commit is contained in:
2026-04-14 07:08:35 +00:00
committed by Forgejo
parent 122a9e70a1
commit 4beeb747d0
@@ -23,6 +23,11 @@ Feature: TDD Issue #7503 — migration_runner _default_prompt_for_migration must
When the default migration prompt raises an EOFError while prompting
Then the default prompt should reject migration after the EOF failure
Scenario: Prompt failure due to unexpected exception rejects migration
Given a migration runner configured for "sqlite:///:memory:"
When the default migration prompt raises an unexpected exception while prompting
Then the default prompt should reject migration after the unexpected failure
Scenario: Non-interactive environment rejects migration by default
Given a migration runner configured for "sqlite:///:memory:"
When I evaluate the default migration prompt in a non-interactive environment