Skip to content

Commit df399fe

Browse files
yeldarbyclaude
andcommitted
fix(tests): update keypoint detection test URLs to serverless
PR #377 changed default inference URLs to serverless.roboflow.com but missed updating tests/models/test_keypoint_detection.py, causing 3 test failures. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 91710a9 commit df399fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/models/test_keypoint_detection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class TestKeypointDetection(unittest.TestCase):
2222
dataset_id = os.getenv("PROJECT_NAME")
2323
version = "1"
2424

25-
api_url = f"https://detect.roboflow.com/{dataset_id}/{version}"
25+
api_url = f"https://serverless.roboflow.com/{dataset_id}/{version}"
2626

2727
_default_params = {"api_key": api_key, "confidence": "40", "name": "YOUR_IMAGE.jpg"}
2828

@@ -35,7 +35,7 @@ def test_init_sets_attributes(self):
3535

3636
self.assertEqual(instance.id, self.version_id)
3737
self.assertEqual(instance.version, self.version)
38-
self.assertEqual(instance.base_url, "https://detect.roboflow.com/")
38+
self.assertEqual(instance.base_url, "https://serverless.roboflow.com/")
3939

4040
@responses.activate
4141
def test_predict_local_image(self):

0 commit comments

Comments
 (0)