From 1791c8873a3edfa8406ef09455726049ddb895f6 Mon Sep 17 00:00:00 2001 From: nehalmamgain <36276997+nehalmamgain@users.noreply.github.com> Date: Wed, 7 Dec 2022 08:49:03 +0530 Subject: [PATCH] test: update paths for key_line_2d unit tests (#136) --- tests/annotation/test_keyline_annotation.py | 8 ++++---- ...00000005_23caffa10d786a53782f9530a6ad796db0eaea21.json | 0 .../b20123bf8d5fcb9dcd0cd5fc6bf0efbcd70504f5.json | 0 .../scene_4c7aafdba3082705e020eb1311834d6963cf18a5.json | 0 .../dgp/{keypoints => key_line_2d}/scene_dataset.json | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename tests/data/dgp/{keypoints => key_line_2d}/scene_000000/key_line_2d/FCM_front/000000000000000005_23caffa10d786a53782f9530a6ad796db0eaea21.json (100%) rename tests/data/dgp/{keypoints => key_line_2d}/scene_000000/ontology/b20123bf8d5fcb9dcd0cd5fc6bf0efbcd70504f5.json (100%) rename tests/data/dgp/{keypoints => key_line_2d}/scene_000000/scene_4c7aafdba3082705e020eb1311834d6963cf18a5.json (100%) rename tests/data/dgp/{keypoints => key_line_2d}/scene_dataset.json (100%) diff --git a/tests/annotation/test_keyline_annotation.py b/tests/annotation/test_keyline_annotation.py index 675cab6d..4d22eee3 100644 --- a/tests/annotation/test_keyline_annotation.py +++ b/tests/annotation/test_keyline_annotation.py @@ -23,7 +23,7 @@ def get_ontology_kl(scene_dataset_json, annotation_type): @pytest.fixture def kl_ontology(): DGP_TEST_DATASET_DIR = os.path.join(TEST_DATA_DIR, "dgp") - scenes_dataset_json = os.path.join(DGP_TEST_DATASET_DIR, "keypoints", "scene_dataset.json") + scenes_dataset_json = os.path.join(DGP_TEST_DATASET_DIR, "key_line_2d", "scene_dataset.json") return get_ontology_kl(scene_dataset_json=scenes_dataset_json, annotation_type="key_line_2d") @@ -38,7 +38,7 @@ def test_kl2d_load(kl_ontology): expected_output = "b67e1" scenes_dataset_json = os.path.join( DGP_TEST_DATASET_DIR, - "keypoints/scene_000000/key_line_2d/FCM_front/000000000000000005_23caffa10d786a53782f9530a6ad796db0eaea21.json" + "key_line_2d/scene_000000/key_line_2d/FCM_front/000000000000000005_23caffa10d786a53782f9530a6ad796db0eaea21.json" ) kl2d_list = KeyLine2DAnnotationList.load(scenes_dataset_json, kl_ontology) assert kl2d_list.hexdigest[0:5] == expected_output @@ -48,7 +48,7 @@ def test_kl2d_proto(kl_ontology): DGP_TEST_DATASET_DIR = os.path.join(TEST_DATA_DIR, "dgp") scenes_dataset_json = os.path.join( DGP_TEST_DATASET_DIR, - "keypoints/scene_000000/key_line_2d/FCM_front/000000000000000005_23caffa10d786a53782f9530a6ad796db0eaea21.json" + "key_line_2d/scene_000000/key_line_2d/FCM_front/000000000000000005_23caffa10d786a53782f9530a6ad796db0eaea21.json" ) kl2d_list = KeyLine2DAnnotationList.load(scenes_dataset_json, kl_ontology) ouput_proto = kl2d_list.to_proto() @@ -59,7 +59,7 @@ def test_kl2d_save(kl_ontology): DGP_TEST_DATASET_DIR = os.path.join(TEST_DATA_DIR, "dgp") scenes_dataset_json = os.path.join( DGP_TEST_DATASET_DIR, - "keypoints/scene_000000/key_line_2d/FCM_front/000000000000000005_23caffa10d786a53782f9530a6ad796db0eaea21.json" + "key_line_2d/scene_000000/key_line_2d/FCM_front/000000000000000005_23caffa10d786a53782f9530a6ad796db0eaea21.json" ) kl2d_list = KeyLine2DAnnotationList.load(scenes_dataset_json, kl_ontology) kl2d_list.save(".") diff --git a/tests/data/dgp/keypoints/scene_000000/key_line_2d/FCM_front/000000000000000005_23caffa10d786a53782f9530a6ad796db0eaea21.json b/tests/data/dgp/key_line_2d/scene_000000/key_line_2d/FCM_front/000000000000000005_23caffa10d786a53782f9530a6ad796db0eaea21.json similarity index 100% rename from tests/data/dgp/keypoints/scene_000000/key_line_2d/FCM_front/000000000000000005_23caffa10d786a53782f9530a6ad796db0eaea21.json rename to tests/data/dgp/key_line_2d/scene_000000/key_line_2d/FCM_front/000000000000000005_23caffa10d786a53782f9530a6ad796db0eaea21.json diff --git a/tests/data/dgp/keypoints/scene_000000/ontology/b20123bf8d5fcb9dcd0cd5fc6bf0efbcd70504f5.json b/tests/data/dgp/key_line_2d/scene_000000/ontology/b20123bf8d5fcb9dcd0cd5fc6bf0efbcd70504f5.json similarity index 100% rename from tests/data/dgp/keypoints/scene_000000/ontology/b20123bf8d5fcb9dcd0cd5fc6bf0efbcd70504f5.json rename to tests/data/dgp/key_line_2d/scene_000000/ontology/b20123bf8d5fcb9dcd0cd5fc6bf0efbcd70504f5.json diff --git a/tests/data/dgp/keypoints/scene_000000/scene_4c7aafdba3082705e020eb1311834d6963cf18a5.json b/tests/data/dgp/key_line_2d/scene_000000/scene_4c7aafdba3082705e020eb1311834d6963cf18a5.json similarity index 100% rename from tests/data/dgp/keypoints/scene_000000/scene_4c7aafdba3082705e020eb1311834d6963cf18a5.json rename to tests/data/dgp/key_line_2d/scene_000000/scene_4c7aafdba3082705e020eb1311834d6963cf18a5.json diff --git a/tests/data/dgp/keypoints/scene_dataset.json b/tests/data/dgp/key_line_2d/scene_dataset.json similarity index 100% rename from tests/data/dgp/keypoints/scene_dataset.json rename to tests/data/dgp/key_line_2d/scene_dataset.json