rename Test file and add init file for metric backend to import all at once

This commit is contained in:
2026-04-04 22:26:19 +02:00
parent 043d7654f9
commit 2b8f0396e3
4 changed files with 14 additions and 6 deletions
@@ -1,4 +1,5 @@
import unittest
from typing import Any, cast
from server.metrics import (
@@ -162,6 +163,7 @@ class TestMetricsStoreTemplate(unittest.IsolatedAsyncioTestCase):
allowed = await manager.acquire_startup_cleanup_lock(180)
self.assertTrue(allowed)
self.assertEqual(fake_store.calls, [("snake:metrics:worker:startup_cleanup_lock", 180)])
await manager.close()
if __name__ == "__main__":