|
20 | 20 | from ote_sdk.test_suite.e2e_test_system import e2e_pytest_component
|
21 | 21 |
|
22 | 22 | from ote_cli.registry import Registry
|
23 |
| -from common import ( |
| 23 | +from ote_cli.utils.tests import ( |
24 | 24 | create_venv,
|
25 | 25 | get_some_vars,
|
26 | 26 | ote_demo_deployment_testing,
|
|
42 | 42 |
|
43 | 43 |
|
44 | 44 | args = {
|
45 |
| - '--train-ann-file': 'data/anomaly/classification/train.json', |
46 |
| - '--train-data-roots': 'data/anomaly/shapes', |
47 |
| - '--val-ann-file': 'data/anomaly/classification/val.json', |
48 |
| - '--val-data-roots': 'data/anomaly/shapes', |
49 |
| - '--test-ann-files': 'data/anomaly/classification/test.json', |
50 |
| - '--test-data-roots': 'data/anomaly/shapes', |
51 |
| - '--input': 'data/anomaly/shapes/test/hexagon', |
52 |
| - 'train_params': [], |
| 45 | + "--train-ann-file": "data/anomaly/classification/train.json", |
| 46 | + "--train-data-roots": "data/anomaly/shapes", |
| 47 | + "--val-ann-file": "data/anomaly/classification/val.json", |
| 48 | + "--val-data-roots": "data/anomaly/shapes", |
| 49 | + "--test-ann-files": "data/anomaly/classification/test.json", |
| 50 | + "--test-data-roots": "data/anomaly/shapes", |
| 51 | + "--input": "data/anomaly/shapes/test/hexagon", |
| 52 | + "train_params": [], |
53 | 53 | }
|
54 | 54 |
|
55 |
| -root = '/tmp/ote_cli/' |
| 55 | +root = "/tmp/ote_cli/" |
56 | 56 | ote_dir = os.getcwd()
|
57 | 57 |
|
58 |
| -templates = Registry('external').filter(task_type='ANOMALY_CLASSIFICATION').templates |
| 58 | +templates = Registry("external").filter(task_type="ANOMALY_CLASSIFICATION").templates |
59 | 59 | templates_ids = [template.model_template_id for template in templates]
|
60 | 60 |
|
61 | 61 |
|
62 | 62 | class TestToolsAnomalyClassification:
|
63 | 63 | @e2e_pytest_component
|
64 | 64 | def test_create_venv(self):
|
65 |
| - work_dir, template_work_dir, algo_backend_dir = get_some_vars(templates[0], root) |
66 |
| - create_venv(algo_backend_dir, work_dir, template_work_dir) |
| 65 | + work_dir, _, algo_backend_dir = get_some_vars(templates[0], root) |
| 66 | + create_venv(algo_backend_dir, work_dir) |
67 | 67 |
|
68 | 68 | @e2e_pytest_component
|
69 | 69 | @pytest.mark.parametrize("template", templates, ids=templates_ids)
|
|
0 commit comments