mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 00:54:27 +03:00
Renamed tests to increase readability
This commit is contained in:
parent
969bd3af24
commit
d3850aacf3
@ -11,7 +11,7 @@ class TestHttpReview(BaseTestHttp):
|
|||||||
super().setUp([Event, ReviewSegment])
|
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
|
# 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()
|
app = super().create_app()
|
||||||
now = datetime.datetime.now().timestamp()
|
now = datetime.datetime.now().timestamp()
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ class TestHttpReview(BaseTestHttp):
|
|||||||
reviews_in_response = reviews_response.json()
|
reviews_in_response = reviews_response.json()
|
||||||
assert len(reviews_in_response) == 0
|
assert len(reviews_in_response) == 0
|
||||||
|
|
||||||
def test_get_reviews_no_filters(self):
|
def test_get_review_no_filters(self):
|
||||||
app = super().create_app()
|
app = super().create_app()
|
||||||
now = datetime.datetime.now().timestamp()
|
now = datetime.datetime.now().timestamp()
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ class TestHttpReview(BaseTestHttp):
|
|||||||
reviews_in_response = reviews_response.json()
|
reviews_in_response = reviews_response.json()
|
||||||
assert len(reviews_in_response) == 1
|
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()
|
app = super().create_app()
|
||||||
now = datetime.datetime.now().timestamp()
|
now = datetime.datetime.now().timestamp()
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ class TestHttpReview(BaseTestHttp):
|
|||||||
reviews_in_response = reviews_response.json()
|
reviews_in_response = reviews_response.json()
|
||||||
assert len(reviews_in_response) == 0
|
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()
|
app = super().create_app()
|
||||||
now = datetime.datetime.now().timestamp()
|
now = datetime.datetime.now().timestamp()
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ class TestHttpReview(BaseTestHttp):
|
|||||||
assert len(reviews_in_response) == 1
|
assert len(reviews_in_response) == 1
|
||||||
assert reviews_in_response[0]["id"] == id
|
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()
|
app = super().create_app()
|
||||||
now = datetime.datetime.now().timestamp()
|
now = datetime.datetime.now().timestamp()
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ class TestHttpReview(BaseTestHttp):
|
|||||||
assert len(reviews_in_response) == 1
|
assert len(reviews_in_response) == 1
|
||||||
assert reviews_in_response[0]["id"] == id2
|
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()
|
app = super().create_app()
|
||||||
now = datetime.datetime.now().timestamp()
|
now = datetime.datetime.now().timestamp()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user