diff --git a/label_studio/tests/export.tavern.yml b/label_studio/tests/export.tavern.yml index cb94bb3d5370..d2243fb5e21f 100644 --- a/label_studio/tests/export.tavern.yml +++ b/label_studio/tests/export.tavern.yml @@ -83,6 +83,7 @@ stages: response: status_code: 200 + --- test_name: YOLO_export_option_polygons strict: true @@ -173,3 +174,107 @@ stages: name: 'ASR_MANIFEST' disabled: true status_code: 200 + + +--- +test_name: mig_export +strict: false +marks: +- usefixtures: + - django_live_url +stages: +- id: signup + type: ref +- name: stage + request: + headers: + content-type: application/json + json: + label_config: + + + + + + method: POST + url: '{django_live_url}/api/projects' + response: + save: + json: + pk: id + status_code: 201 +- name: stage_export + request: + method: GET + url: '{django_live_url}/api/projects/{pk}/export/formats' + response: + strict: + - json:list_any_order + json: + - title: 'JSON' + description: !anystr + link: 'https://labelstud.io/guide/export.html#JSON' + name: 'JSON' + - title: 'JSON-MIN' + description: !anystr + link: 'https://labelstud.io/guide/export.html#JSON-MIN' + name: 'JSON_MIN' + - title: 'CSV' + description: !anystr + link: 'https://labelstud.io/guide/export.html#CSV' + name: 'CSV' + - title: 'TSV' + description: !anystr + link: 'https://labelstud.io/guide/export.html#TSV' + name: 'TSV' + - title: 'COCO' + description: !anystr + link: 'https://labelstud.io/guide/export.html#COCO' + tags: ['image segmentation', 'object detection'] + name: 'COCO' + disabled: true + - title: 'YOLO' + description: !anystr + link: 'https://labelstud.io/guide/export.html#YOLO' + tags: ['image segmentation', 'object detection'] + name: 'YOLO' + disabled: true + - title: 'YOLOv8 OBB' + description: !anystr + link: 'https://labelstud.io/guide/export.html#YOLO' + tags: ['image segmentation', 'object detection'] + name: 'YOLO_OBB' + disabled: true + - title: 'CONLL2003' + description: !anystr + link: 'https://labelstud.io/guide/export.html#CONLL2003' + tags: ['sequence labeling', 'text tagging', 'named entity recognition'] + name: 'CONLL2003' + disabled: true + - title: 'Pascal VOC XML' + description: !anystr + link: 'https://labelstud.io/guide/export.html#Pascal-VOC-XML' + tags: ['image segmentation', 'object detection'] + name: 'VOC' + disabled: true + - title: 'Brush labels to NumPy' + description: !anystr + link: 'https://labelstud.io/guide/export.html#Brush-labels-to-NumPy-amp-PNG' + tags: ['image segmentation'] + name: 'BRUSH_TO_NUMPY' + disabled: true + - title: 'Brush labels to PNG' + description: !anystr + link: 'https://labelstud.io/guide/export.html#Brush-labels-to-NumPy-amp-PNG' + tags: ['image segmentation'] + name: 'BRUSH_TO_PNG' + disabled: true + - title: 'ASR Manifest' + description: !anystr + link: 'https://labelstud.io/guide/export.html#ASR-MANIFEST' + tags: ['speech recognition'] + name: 'ASR_MANIFEST' + disabled: true + status_code: 200 diff --git a/poetry.lock b/poetry.lock index cdf431d753b8..ed8ddbda16d4 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.4 and should not be changed by hand. [[package]] name = "annotated-types" @@ -1902,7 +1902,7 @@ description = "" optional = false python-versions = "^3.8" files = [ - {file = "d6b2cea6a7a77ef877b44e3f8e5c36f0b96247b4.zip", hash = "sha256:212705a0243bad369e4babd6d198d97c538d0fd4c495fd79f7f327d6d1089001"}, + {file = "505bf58261478e9b0babb53a4815ccf8c4bd2ed9.zip", hash = "sha256:45e5ec3f15d9d65a504b35e66ff370821e313fa0ad4f1b1e70e3f3813e272895"}, ] [package.dependencies] @@ -1925,7 +1925,7 @@ xmljson = "0.2.1" [package.source] type = "url" -url = "https://github.com/HumanSignal/label-studio-sdk/archive/d6b2cea6a7a77ef877b44e3f8e5c36f0b96247b4.zip" +url = "https://github.com/HumanSignal/label-studio-sdk/archive/505bf58261478e9b0babb53a4815ccf8c4bd2ed9.zip" [[package]] name = "launchdarkly-server-sdk" @@ -4468,4 +4468,4 @@ uwsgi = ["pyuwsgi", "uwsgitop"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<4" -content-hash = "3db50a88b2cc6bafc0d372f1bc81fd2ce1f42fbcacf449fab39ab356d93695de" +content-hash = "9a7b74be4ae28a022c3ddddcf5030cb0497d86bda9f5d8e23d3ce9a4d7f08263" diff --git a/pyproject.toml b/pyproject.toml index 5f31d492f36f..fe7fbebd0b73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -203,7 +203,7 @@ django-migration-linter = "^5.1.0" setuptools = ">=75.4.0" # Humansignal repo dependencies -label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/d6b2cea6a7a77ef877b44e3f8e5c36f0b96247b4.zip"} +label-studio-sdk = {url = "https://github.com/HumanSignal/label-studio-sdk/archive/505bf58261478e9b0babb53a4815ccf8c4bd2ed9.zip"} [tool.poetry.group.test.dependencies] pytest = "7.2.2"