reject empty schedule_days with 422

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-06-27 17:09:11 +02:00
parent e5a5a6009a
commit 2e723087d9
5 changed files with 19 additions and 52 deletions

View File

@@ -68,8 +68,8 @@ class TestSchedulerConfigValidScheduleDays:
assert config.schedule_days == ALL_DAYS
def test_empty_list(self) -> None:
config = SchedulerConfig(schedule_days=[])
assert config.schedule_days == []
with pytest.raises(ValidationError):
SchedulerConfig(schedule_days=[])
class TestSchedulerConfigInvalidScheduleDays: