Skip to content

Commit 2dc545b

Browse files
author
Auto-format Bot
committed
Automatically reformatting code
1 parent e9231c8 commit 2dc545b

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

test/integration/test_groundlight.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626
PaginatedDetectorList,
2727
PaginatedImageQueryList,
2828
)
29-
from test.retry_decorator import retry_on_failure
3029
from urllib3.exceptions import ConnectTimeoutError, MaxRetryError, ReadTimeoutError
3130
from urllib3.util.retry import Retry
3231

32+
from test.retry_decorator import retry_on_failure
33+
3334
DEFAULT_CONFIDENCE_THRESHOLD = 0.9
3435
IQ_IMPROVEMENT_THRESHOLD = 0.75
3536

test/unit/test_experimental.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import pytest
55
from groundlight import ExperimentalApi
66
from model import Detector, ImageQuery
7+
78
from test.retry_decorator import retry_on_failure
89

910

test/unit/test_images.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import PIL
44
from groundlight import ExperimentalApi
5+
56
from test.retry_decorator import retry_on_failure
67

78

test/unit/test_labels.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import pytest
44
from groundlight import ApiException, ExperimentalApi
5+
56
from test.retry_decorator import retry_on_failure
67

78

@@ -24,7 +25,9 @@ def test_binary_labels(gl_experimental: ExperimentalApi, detector_name: Callable
2425

2526
@retry_on_failure()
2627
def test_counting_labels(gl_experimental: ExperimentalApi, detector_name: Callable):
27-
det = gl_experimental.create_counting_detector(detector_name("Test counting labels"), "test_query", "test_object_class")
28+
det = gl_experimental.create_counting_detector(
29+
detector_name("Test counting labels"), "test_query", "test_object_class"
30+
)
2831
iq1 = gl_experimental.submit_image_query(det, "test/assets/cat.jpeg")
2932

3033
gl_experimental.add_label(iq1, 0)
@@ -71,7 +74,9 @@ def test_multiclass_labels(gl_experimental: ExperimentalApi, detector_name: Call
7174

7275
@retry_on_failure()
7376
def test_bounding_box_labels(gl_experimental: ExperimentalApi, detector_name: Callable):
74-
det = gl_experimental.create_bounding_box_detector(detector_name("Test bounding box labels"), "test_query", "test_class")
77+
det = gl_experimental.create_bounding_box_detector(
78+
detector_name("Test bounding box labels"), "test_query", "test_class"
79+
)
7580
iq1 = gl_experimental.submit_image_query(det, "test/assets/cat.jpeg")
7681
gl_experimental.add_label(iq1, "NO_OBJECTS")
7782
iq1 = gl_experimental.get_image_query(iq1.id)

0 commit comments

Comments
 (0)