|
1 | | -from pathlib import Path |
| 1 | +import os |
2 | 2 | import subprocess |
3 | 3 | import time |
| 4 | +from pathlib import Path |
4 | 5 |
|
5 | 6 | import pytest |
6 | | - |
7 | 7 | import superannotate as sa |
8 | 8 |
|
9 | 9 |
|
| 10 | +@pytest.mark.skipif( |
| 11 | + "SA_TEST_PREANNOTATION" not in os.environ, |
| 12 | + reason="Requires env variable to be set" |
| 13 | +) |
10 | 14 | @pytest.mark.parametrize( |
11 | 15 | "project_type,name,description,from_folder", [ |
12 | 16 | ( |
@@ -83,6 +87,10 @@ def test_annotation_folder_upload_download_cli_vector_COCO(tmpdir): |
83 | 87 | assert count_in == count_out |
84 | 88 |
|
85 | 89 |
|
| 90 | +@pytest.mark.skipif( |
| 91 | + "SA_TEST_PREANNOTATION" not in os.environ, |
| 92 | + reason="Requires env variable to be set" |
| 93 | +) |
86 | 94 | def test_preannotation_folder_upload_download_cli_vector_COCO(tmpdir): |
87 | 95 | project_type = "Vector" |
88 | 96 | name = "Example Project test vector2 preannotation cli upload coco vector" |
@@ -116,6 +124,10 @@ def test_preannotation_folder_upload_download_cli_vector_COCO(tmpdir): |
116 | 124 | assert count_in == count_out |
117 | 125 |
|
118 | 126 |
|
| 127 | +@pytest.mark.skipif( |
| 128 | + "SA_TEST_PREANNOTATION" not in os.environ, |
| 129 | + reason="Requires env variable to be set" |
| 130 | +) |
119 | 131 | def test_preannotation_folder_upload_download_cli_vector_object_COCO(tmpdir): |
120 | 132 | project_type = "Vector" |
121 | 133 | name = "Example Project test vector1 preannotation cli upload coco object vector" |
@@ -149,6 +161,10 @@ def test_preannotation_folder_upload_download_cli_vector_object_COCO(tmpdir): |
149 | 161 | assert count_in == count_out |
150 | 162 |
|
151 | 163 |
|
| 164 | +@pytest.mark.skipif( |
| 165 | + "SA_TEST_PREANNOTATION" not in os.environ, |
| 166 | + reason="Requires env variable to be set" |
| 167 | +) |
152 | 168 | def test_preannotation_folder_upload_download_cli_pixel_object_COCO(tmpdir): |
153 | 169 | project_type = "Pixel" |
154 | 170 | name = "Example Project test pixel1 preannotation cli upload coco object pixel" |
|
0 commit comments