Fix tests

This commit is contained in:
Nick Mowen 2022-10-09 09:45:50 -06:00
parent f14542cd09
commit 167c0d36a7

View File

@ -114,7 +114,7 @@ class TestHttp(unittest.TestCase):
def test_get_event_list(self): def test_get_event_list(self):
app = create_app( 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" id = "123456.random"
id2 = "7890.random" id2 = "7890.random"
@ -143,7 +143,7 @@ class TestHttp(unittest.TestCase):
def test_get_good_event(self): def test_get_good_event(self):
app = create_app( 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" id = "123456.random"
@ -157,7 +157,7 @@ class TestHttp(unittest.TestCase):
def test_get_bad_event(self): def test_get_bad_event(self):
app = create_app( 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" id = "123456.random"
bad_id = "654321.other" bad_id = "654321.other"
@ -170,7 +170,7 @@ class TestHttp(unittest.TestCase):
def test_delete_event(self): def test_delete_event(self):
app = create_app( 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" id = "123456.random"
@ -185,7 +185,7 @@ class TestHttp(unittest.TestCase):
def test_event_retention(self): def test_event_retention(self):
app = create_app( 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" id = "123456.random"
@ -204,7 +204,7 @@ class TestHttp(unittest.TestCase):
def test_set_delete_sub_label(self): def test_set_delete_sub_label(self):
app = create_app( 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" id = "123456.random"
sub_label = "sub" sub_label = "sub"
@ -232,7 +232,7 @@ class TestHttp(unittest.TestCase):
def test_sub_label_list(self): def test_sub_label_list(self):
app = create_app( 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" id = "123456.random"
sub_label = "sub" sub_label = "sub"
@ -254,6 +254,7 @@ class TestHttp(unittest.TestCase):
self.db, self.db,
None, None,
None, None,
None,
PlusApi(), PlusApi(),
) )
@ -268,6 +269,7 @@ class TestHttp(unittest.TestCase):
self.db, self.db,
None, None,
None, None,
None,
PlusApi(), PlusApi(),
) )
id = "123456.random" id = "123456.random"
@ -285,6 +287,7 @@ class TestHttp(unittest.TestCase):
self.db, self.db,
None, None,
None, None,
None,
PlusApi(), PlusApi(),
) )
mock_stats.return_value = self.test_stats mock_stats.return_value = self.test_stats