Files
wehub-resource-sync 16031aae96
CPU tests Workflow / Testing (ubuntu-latest, 3.12) (push) Failing after 1s
CPU tests Workflow / Testing (ubuntu-latest, 3.13) (push) Failing after 0s
Mypy Type Check / Type Check (push) Failing after 0s
Docs/Test WorkFlow / Test docs build (push) Failing after 1s
PR Conflict Labeler / labeling (push) Failing after 1s
Dependency resolution / Resolve [tflite] extra — Python 3.12 (push) Failing after 0s
Smoke Tests / try-all-models (ubuntu-latest, 3.10) (push) Failing after 0s
Smoke Tests / try-all-models (ubuntu-latest, 3.13) (push) Failing after 1s
CPU tests Workflow / build-pkg (push) Failing after 1s
CPU tests Workflow / Testing (ubuntu-latest, 3.10) (push) Failing after 0s
CPU tests Workflow / Testing (ubuntu-latest, 3.11) (push) Failing after 0s
Smoke Tests / try-all-models (macos-latest, 3.10) (push) Has been cancelled
Smoke Tests / try-all-models (macos-latest, 3.13) (push) Has been cancelled
Smoke Tests / try-all-models (windows-latest, 3.10) (push) Has been cancelled
Smoke Tests / try-all-models (windows-latest, 3.13) (push) Has been cancelled
CPU tests Workflow / Testing (macos-latest, 3.10) (push) Has been cancelled
CPU tests Workflow / Testing (macos-latest, 3.13) (push) Has been cancelled
CPU tests Workflow / Testing (windows-latest, 3.10) (push) Has been cancelled
CPU tests Workflow / Testing (windows-latest, 3.13) (push) Has been cancelled
CPU tests Workflow / testing-guardian (push) Has been cancelled
GPU tests Workflow / Testing (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:26:24 +08:00

27 lines
1.3 KiB
Python

# ------------------------------------------------------------------------
# RF-DETR
# Copyright (c) 2025 Roboflow. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 [see LICENSE for details]
# ------------------------------------------------------------------------
"""No-network tests for private COCO developer helper URL selection."""
from rfdetr.datasets._develop import _COCO_URLS, get_coco_download_url
def test_coco_helper_train2017_url_selection() -> None:
"""``train2017`` should resolve to the official COCO train archive URL."""
assert get_coco_download_url("train2017") == _COCO_URLS["train2017"]
assert get_coco_download_url("train2017").endswith("/train2017.zip")
def test_coco_helper_val2017_url_selection() -> None:
"""``val2017`` should resolve to the official COCO val archive URL."""
assert get_coco_download_url("val2017") == _COCO_URLS["val2017"]
assert get_coco_download_url("val2017").endswith("/val2017.zip")
def test_coco_helper_annotations_url_selection() -> None:
"""``annotations`` should resolve to the COCO train/val annotations archive URL."""
assert get_coco_download_url("annotations") == _COCO_URLS["annotations"]
assert get_coco_download_url("annotations").endswith("/annotations_trainval2017.zip")