Skip to content

Commit 9c73348

Browse files
committed
added stress test decorator
1 parent 62b84eb commit 9c73348

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_ml_funcs.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from .common import upload_project
55
import pytest
66

7+
78
sa.init(Path.home() / ".superannotate" / "config.json")
89
PROJECT_NAME_VECTOR = 'ML Functionality Test Vector'
910
PROJECT_NAME_PIXEL = 'ML Functionality Test Pixel'
@@ -13,6 +14,10 @@
1314

1415
MODEL_NAME = 'Instance segmentation (trained on COCO)'
1516

17+
@pytest.mark.skipif(
18+
"SA_STRESS_TESTS" not in os.environ,
19+
reason="Requires env variable to be set"
20+
)
1621
def test_run_prediction():
1722

1823
upload_project(
@@ -51,6 +56,10 @@ def test_run_prediction():
5156

5257

5358

59+
@pytest.mark.skipif(
60+
"SA_STRESS_TESTS" not in os.environ,
61+
reason="Requires env variable to be set"
62+
)
5463
def test_run_segmentation():
5564

5665
model_auto = 'autonomous'

0 commit comments

Comments
 (0)