File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -274,7 +274,8 @@ def get_target(target_id: str) -> Response:
274
274
275
275
276
276
@VWS_FLASK_APP .route (
277
- "/targets/<string:target_id>" , methods = [HTTPMethod .DELETE ]
277
+ "/targets/<string:target_id>" ,
278
+ methods = [HTTPMethod .DELETE ],
278
279
)
279
280
def delete_target (target_id : str ) -> Response :
280
281
"""
@@ -433,7 +434,8 @@ def target_summary(target_id: str) -> Response:
433
434
434
435
435
436
@VWS_FLASK_APP .route (
436
- "/duplicates/<string:target_id>" , methods = [HTTPMethod .GET ]
437
+ "/duplicates/<string:target_id>" ,
438
+ methods = [HTTPMethod .GET ],
437
439
)
438
440
def get_duplicates (target_id : str ) -> Response :
439
441
"""
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def validate_content_type_header_given(
26
26
request requires one.
27
27
"""
28
28
request_needs_content_type = bool (
29
- request_method in {HTTPMethod .POST , HTTPMethod .PUT }
29
+ request_method in {HTTPMethod .POST , HTTPMethod .PUT },
30
30
)
31
31
if request_headers .get ("Content-Type" ) or not request_needs_content_type :
32
32
return
Original file line number Diff line number Diff line change @@ -293,7 +293,8 @@ def test_structural_similarity_matcher(
293
293
) -> None :
294
294
"""The structural similarity matcher matches similar images."""
295
295
monkeypatch .setenv (
296
- name = "QUERY_IMAGE_MATCHER" , value = "structural_similarity"
296
+ name = "QUERY_IMAGE_MATCHER" ,
297
+ value = "structural_similarity" ,
297
298
)
298
299
database = VuforiaDatabase ()
299
300
vws_client = VWS (
Original file line number Diff line number Diff line change @@ -1773,7 +1773,7 @@ def test_updated_target(
1773
1773
# second.
1774
1774
assert target_timestamp >= original_target_timestamp
1775
1775
time_difference = abs (
1776
- approximate_target_updated - target_timestamp .timestamp ()
1776
+ approximate_target_updated - target_timestamp .timestamp (),
1777
1777
)
1778
1778
max_time_difference = 5
1779
1779
assert time_difference < max_time_difference
You can’t perform that action at this time.
0 commit comments