From d3850aacf32360dcb93c37cb1fc73440119710f1 Mon Sep 17 00:00:00 2001 From: Rui Alves Date: Tue, 19 Nov 2024 23:13:59 +0000 Subject: [PATCH] Renamed tests to increase readability --- frigate/test/http_api/test_http_review.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frigate/test/http_api/test_http_review.py b/frigate/test/http_api/test_http_review.py index 7dbc21fae..19e1f26f8 100644 --- a/frigate/test/http_api/test_http_review.py +++ b/frigate/test/http_api/test_http_review.py @@ -11,7 +11,7 @@ class TestHttpReview(BaseTestHttp): super().setUp([Event, ReviewSegment]) # Does not return any data point since the end time (before parameter) is not passed and the review segment end_time is 2 seconds from now - def test_get_reviews_no_filters_no_matches(self): + def test_get_review_no_filters_no_matches(self): app = super().create_app() now = datetime.datetime.now().timestamp() @@ -22,7 +22,7 @@ class TestHttpReview(BaseTestHttp): reviews_in_response = reviews_response.json() assert len(reviews_in_response) == 0 - def test_get_reviews_no_filters(self): + def test_get_review_no_filters(self): app = super().create_app() now = datetime.datetime.now().timestamp() @@ -33,7 +33,7 @@ class TestHttpReview(BaseTestHttp): reviews_in_response = reviews_response.json() assert len(reviews_in_response) == 1 - def test_get_with_time_filter_no_matches(self): + def test_get_review_with_time_filter_no_matches(self): app = super().create_app() now = datetime.datetime.now().timestamp() @@ -49,7 +49,7 @@ class TestHttpReview(BaseTestHttp): reviews_in_response = reviews_response.json() assert len(reviews_in_response) == 0 - def test_get_with_time_filter(self): + def test_get_review_with_time_filter(self): app = super().create_app() now = datetime.datetime.now().timestamp() @@ -66,7 +66,7 @@ class TestHttpReview(BaseTestHttp): assert len(reviews_in_response) == 1 assert reviews_in_response[0]["id"] == id - def test_get_review_with_limit(self): + def test_get_review_with_limit_filter(self): app = super().create_app() now = datetime.datetime.now().timestamp() @@ -86,7 +86,7 @@ class TestHttpReview(BaseTestHttp): assert len(reviews_in_response) == 1 assert reviews_in_response[0]["id"] == id2 - def test_get_with_all_filters(self): + def test_get_review_with_all_filters(self): app = super().create_app() now = datetime.datetime.now().timestamp()