mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Fix tests
This commit is contained in:
parent
f14542cd09
commit
167c0d36a7
@ -114,7 +114,7 @@ class TestHttp(unittest.TestCase):
|
||||
|
||||
def test_get_event_list(self):
|
||||
app = create_app(
|
||||
FrigateConfig(**self.minimal_config), self.db, None, None, PlusApi()
|
||||
FrigateConfig(**self.minimal_config), self.db, None, None, None, PlusApi()
|
||||
)
|
||||
id = "123456.random"
|
||||
id2 = "7890.random"
|
||||
@ -143,7 +143,7 @@ class TestHttp(unittest.TestCase):
|
||||
|
||||
def test_get_good_event(self):
|
||||
app = create_app(
|
||||
FrigateConfig(**self.minimal_config), self.db, None, None, PlusApi()
|
||||
FrigateConfig(**self.minimal_config), self.db, None, None, None, PlusApi()
|
||||
)
|
||||
id = "123456.random"
|
||||
|
||||
@ -157,7 +157,7 @@ class TestHttp(unittest.TestCase):
|
||||
|
||||
def test_get_bad_event(self):
|
||||
app = create_app(
|
||||
FrigateConfig(**self.minimal_config), self.db, None, None, PlusApi()
|
||||
FrigateConfig(**self.minimal_config), self.db, None, None, None, PlusApi()
|
||||
)
|
||||
id = "123456.random"
|
||||
bad_id = "654321.other"
|
||||
@ -170,7 +170,7 @@ class TestHttp(unittest.TestCase):
|
||||
|
||||
def test_delete_event(self):
|
||||
app = create_app(
|
||||
FrigateConfig(**self.minimal_config), self.db, None, None, PlusApi()
|
||||
FrigateConfig(**self.minimal_config), self.db, None, None, None, PlusApi()
|
||||
)
|
||||
id = "123456.random"
|
||||
|
||||
@ -185,7 +185,7 @@ class TestHttp(unittest.TestCase):
|
||||
|
||||
def test_event_retention(self):
|
||||
app = create_app(
|
||||
FrigateConfig(**self.minimal_config), self.db, None, None, PlusApi()
|
||||
FrigateConfig(**self.minimal_config), self.db, None, None, None, PlusApi()
|
||||
)
|
||||
id = "123456.random"
|
||||
|
||||
@ -204,7 +204,7 @@ class TestHttp(unittest.TestCase):
|
||||
|
||||
def test_set_delete_sub_label(self):
|
||||
app = create_app(
|
||||
FrigateConfig(**self.minimal_config), self.db, None, None, PlusApi()
|
||||
FrigateConfig(**self.minimal_config), self.db, None, None, None, PlusApi()
|
||||
)
|
||||
id = "123456.random"
|
||||
sub_label = "sub"
|
||||
@ -232,7 +232,7 @@ class TestHttp(unittest.TestCase):
|
||||
|
||||
def test_sub_label_list(self):
|
||||
app = create_app(
|
||||
FrigateConfig(**self.minimal_config), self.db, None, None, PlusApi()
|
||||
FrigateConfig(**self.minimal_config), self.db, None, None, None, PlusApi()
|
||||
)
|
||||
id = "123456.random"
|
||||
sub_label = "sub"
|
||||
@ -254,6 +254,7 @@ class TestHttp(unittest.TestCase):
|
||||
self.db,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
PlusApi(),
|
||||
)
|
||||
|
||||
@ -268,6 +269,7 @@ class TestHttp(unittest.TestCase):
|
||||
self.db,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
PlusApi(),
|
||||
)
|
||||
id = "123456.random"
|
||||
@ -285,6 +287,7 @@ class TestHttp(unittest.TestCase):
|
||||
self.db,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
PlusApi(),
|
||||
)
|
||||
mock_stats.return_value = self.test_stats
|
||||
|
||||
Loading…
Reference in New Issue
Block a user