Skip to content

Commit a900248

Browse files
committed
updated test
1 parent c4fb461 commit a900248

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/test_object_detection.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
jigsaw = jigsawstack.JigsawStack(api_key=os.getenv("JIGSAWSTACK_API_KEY"))
1919
async_jigsaw = jigsawstack.AsyncJigsawStack(api_key=os.getenv("JIGSAWSTACK_API_KEY"))
2020

21-
IMAGE_URL = (
22-
"https://rogilvkqloanxtvjfrkm.supabase.co/storage/v1/object/public/demo/Collabo%201080x842.jpg"
23-
)
21+
IMAGE_URL = "https://rogilvkqloanxtvjfrkm.supabase.co/storage/v1/object/public/demo/Collabo%201080x842.jpg"
2422

2523
TEST_CASES = [
2624
{
@@ -49,7 +47,7 @@
4947
"name": "with_blob_both_features",
5048
"blob": IMAGE_URL,
5149
"options": {
52-
"features": ["object_detection", "gui"],
50+
"features": ["object", "gui"],
5351
"annotated_image": True,
5452
"return_type": "url",
5553
},
@@ -63,7 +61,7 @@
6361
"name": "with_blob_object_detection_features",
6462
"blob": IMAGE_URL,
6563
"options": {
66-
"features": ["object_detection"],
64+
"features": ["object"],
6765
"annotated_image": True,
6866
"return_type": "base64",
6967
},
@@ -80,7 +78,7 @@
8078
"name": "with_all_options",
8179
"blob": IMAGE_URL,
8280
"options": {
83-
"features": ["object_detection", "gui"],
81+
"features": ["object", "gui"],
8482
"prompts": ["car", "road", "tree"],
8583
"annotated_image": True,
8684
"return_type": "base64",
@@ -104,7 +102,9 @@ def test_object_detection(self, test_case):
104102
if test_case.get("blob"):
105103
# Download blob content
106104
blob_content = requests.get(test_case["blob"]).content
107-
result = jigsaw.vision.object_detection(blob_content, test_case.get("options", {}))
105+
result = jigsaw.vision.object_detection(
106+
blob_content, test_case.get("options", {})
107+
)
108108
else:
109109
# Use params directly
110110
result = jigsaw.vision.object_detection(test_case["params"])

0 commit comments

Comments
 (0)