Update tests

This commit is contained in:
Nick Mowen 2023-01-20 08:20:17 -07:00
parent fa1a24ba6c
commit e09cd09f2c

View File

@ -114,7 +114,13 @@ 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, None, PlusApi() FrigateConfig(**self.minimal_config),
self.db,
None,
None,
None,
None,
PlusApi(),
) )
id = "123456.random" id = "123456.random"
id2 = "7890.random" id2 = "7890.random"
@ -143,7 +149,13 @@ 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, None, PlusApi() FrigateConfig(**self.minimal_config),
self.db,
None,
None,
None,
None,
PlusApi(),
) )
id = "123456.random" id = "123456.random"
@ -157,7 +169,13 @@ 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, None, PlusApi() FrigateConfig(**self.minimal_config),
self.db,
None,
None,
None,
None,
PlusApi(),
) )
id = "123456.random" id = "123456.random"
bad_id = "654321.other" bad_id = "654321.other"
@ -170,7 +188,13 @@ 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, None, PlusApi() FrigateConfig(**self.minimal_config),
self.db,
None,
None,
None,
None,
PlusApi(),
) )
id = "123456.random" id = "123456.random"
@ -204,7 +228,13 @@ 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, None, PlusApi() FrigateConfig(**self.minimal_config),
self.db,
None,
None,
None,
None,
PlusApi(),
) )
id = "123456.random" id = "123456.random"
sub_label = "sub" sub_label = "sub"
@ -232,7 +262,13 @@ 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, None, PlusApi() FrigateConfig(**self.minimal_config),
self.db,
None,
None,
None,
None,
PlusApi(),
) )
id = "123456.random" id = "123456.random"
sub_label = "sub" sub_label = "sub"
@ -255,6 +291,7 @@ class TestHttp(unittest.TestCase):
None, None,
None, None,
None, None,
None,
PlusApi(), PlusApi(),
) )
@ -270,6 +307,7 @@ class TestHttp(unittest.TestCase):
None, None,
None, None,
None, None,
None,
PlusApi(), PlusApi(),
) )
id = "123456.random" id = "123456.random"
@ -288,6 +326,7 @@ class TestHttp(unittest.TestCase):
None, None,
None, None,
None, None,
None,
PlusApi(), PlusApi(),
) )
mock_stats.return_value = self.test_stats mock_stats.return_value = self.test_stats