Skip to content

Commit

Permalink
Initial tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JBWilkie committed Sep 20, 2024
1 parent 4e9435d commit 4cfbc1c
Show file tree
Hide file tree
Showing 45 changed files with 14,199 additions and 35 deletions.
33 changes: 33 additions & 0 deletions e2e_tests/cli/test_convert.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# from pathlib import Path


# from e2e_tests.helpers import assert_cli, run_cli_command
# from e2e_tests.objects import E2EDataset


# TODO
# def test_convert_to_coco(local_dataset: E2EDataset) -> None:
# """
# Test converting a pre-defined Darwin JSON 2.0 release to the coco format.
# """
# convert_dir = Path(__file__).parent / "data" / "convert" / "to_coco"
# result = run_cli_command(
# f"darwin dataset convert {local_dataset.name} coco {convert_dir}"
# )
# assert_cli(result, 0)
# # Add validation logic here

# TODO
# def test_convert_to_cvat(local_dataset: E2EDataset) -> None:
# """
# Test converting a pre-defined Darwin JSON 2.0 release to the cvat format.
# """
# convert_dir = Path(__file__).parent / "data" / "convert" / "to_cvat"
# result = run_cli_command(
# f"darwin dataset convert {local_dataset.name} cvat {convert_dir}"
# )
# assert_cli(result, 0)
# # Add validation logic here


# Add more tests for other convert scenarios as described in the plan
Loading

0 comments on commit 4cfbc1c

Please sign in to comment.