Grotti 3.6.0: Lauf-Identität nach Filament-Pause, robustere Queue, Projekte/Aufträge list-first und API-Polish.

This commit is contained in:
Dominic Gundel committed 2026-10-25 08:24:24 +01:00
1 parent d1eb87ba25
commit 2b1e36634a
53 files changed
+4254 -636

No files matched your search

+10
View File
@@ -69,6 +69,16 @@ class ChooseSpoolTests(unittest.TestCase):
):
self.assertEqual(jobs.resolve_tracking_spool(conn, "h", 4), 14)
def test_ace_target_skips_spool_created_after_end(self):
end = datetime(2026, 10, 15, 22, 0, tzinfo=timezone.utc)
future = {"id": 18, "created_at": end + timedelta(days=6)}
conn = MagicMock()
with patch("grotti.jobs.store.spool_at_slot", return_value=future):
self.assertEqual(
jobs._targets_from_ace(conn, "h", [{"ams_index": 3}], ended_at=end),
[],
)
def test_spool_valid_for_end_naive(self):
end = datetime(2026, 10, 1, 12, 0, tzinfo=timezone.utc)
spool = {"created_at": datetime(2026, 9, 1, 12, 0)}