mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-24 22:37:08 +03:00
restore model bindings in media sync test, add test module docstrings
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
"""Tests for trigger push notifications."""
|
||||
|
||||
import unittest
|
||||
from types import SimpleNamespace
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
Reference in New Issue
Block a user