Skip to content

Commit 98aa64e

Browse files
committed
(WIP) integration test
1 parent 36c1e51 commit 98aa64e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/integration/cli/visual_prompting/test_visual_prompting.py

+16
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
from tests.test_suite.e2e_test_system import e2e_pytest_component
1414
from tests.test_suite.run_test_command import (
1515
get_template_dir,
16+
otx_deploy_openvino_testing,
17+
otx_eval_deployment_testing,
1618
otx_eval_openvino_testing,
1719
otx_eval_testing,
1820
otx_export_testing,
@@ -104,3 +106,17 @@ def test_otx_export_onnx(self, template, tmp_dir_path):
104106
def test_otx_eval_openvino(self, template, tmp_dir_path, half_precision):
105107
tmp_dir_path = tmp_dir_path / "visual_prompting"
106108
otx_eval_openvino_testing(template, tmp_dir_path, otx_dir, args, threshold=1.0, half_precision=half_precision)
109+
110+
@e2e_pytest_component
111+
@pytest.mark.skip("demo.py is not supported.")
112+
@pytest.mark.parametrize("template", templates, ids=templates_ids)
113+
def test_otx_deploy_openvino(self, template, tmp_dir_path):
114+
tmp_dir_path = tmp_dir_path / "visual_prompting"
115+
otx_deploy_openvino_testing(template, tmp_dir_path, otx_dir, args)
116+
117+
@e2e_pytest_component
118+
@pytest.mark.skip("openvino.zip is not created because `otx_deploy_openvino_testing` is not executed.")
119+
@pytest.mark.parametrize("template", templates, ids=templates_ids)
120+
def test_otx_eval_deployment(self, template, tmp_dir_path):
121+
tmp_dir_path = tmp_dir_path / "visual_prompting"
122+
otx_eval_deployment_testing(template, tmp_dir_path, otx_dir, args, threshold=1.0)

0 commit comments

Comments
 (0)