mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-28 16:27:07 +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 os
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
@@ -12,7 +14,7 @@ from frigate.util.media import sync_exports
|
|||||||
class TestSyncExports(unittest.TestCase):
|
class TestSyncExports(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.db = SqliteDatabase(":memory:")
|
self.db = SqliteDatabase(":memory:")
|
||||||
self.db.bind([Export, ExportCase])
|
self.enterContext(self.db.bind_ctx([Export, ExportCase]))
|
||||||
self.db.create_tables([Export, ExportCase])
|
self.db.create_tables([Export, ExportCase])
|
||||||
|
|
||||||
self.tmp = tempfile.TemporaryDirectory()
|
self.tmp = tempfile.TemporaryDirectory()
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
"""Tests for trigger push notifications."""
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
from types import SimpleNamespace
|
from types import SimpleNamespace
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|||||||
Reference in New Issue
Block a user