restore model bindings in media sync test, add test module docstrings

This commit is contained in:
Josh Hawkins
2026-11-23 19:02:13 -06:00
parent 61acbb2dcd
commit 84c678d03e
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
"""Tests for media sync orphan cleanup."""
import os
import tempfile
import unittest
@@ -12,7 +14,7 @@ from frigate.util.media import sync_exports
class TestSyncExports(unittest.TestCase):
def setUp(self):
self.db = SqliteDatabase(":memory:")
self.db.bind([Export, ExportCase])
self.enterContext(self.db.bind_ctx([Export, ExportCase]))
self.db.create_tables([Export, ExportCase])
self.tmp = tempfile.TemporaryDirectory()
+2
View File
@@ -1,3 +1,5 @@
"""Tests for trigger push notifications."""
import unittest
from types import SimpleNamespace
from unittest.mock import MagicMock