rename Test file and add init file for metric backend to import all at once
This commit is contained in:
@@ -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__":
|
||||
Reference in New Issue
Block a user