|
| 1 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | +# Licensed under the MIT License. |
| 3 | + |
| 4 | +import os |
| 5 | +from unittestadapter.utils import TestNodeTypeEnum |
| 6 | +from .helpers import TEST_DATA_PATH |
| 7 | + |
| 8 | +skip_unittest_folder_discovery_output = { |
| 9 | + "path": os.fspath(TEST_DATA_PATH / "unittest_skip"), |
| 10 | + "name": "unittest_skip", |
| 11 | + "type_": TestNodeTypeEnum.folder, |
| 12 | + "children": [ |
| 13 | + { |
| 14 | + "path": os.fspath( |
| 15 | + TEST_DATA_PATH / "unittest_skip" / "unittest_skip_file.py" |
| 16 | + ), |
| 17 | + "name": "unittest_skip_file.py", |
| 18 | + "type_": TestNodeTypeEnum.file, |
| 19 | + "children": [], |
| 20 | + "id_": os.fspath( |
| 21 | + TEST_DATA_PATH / "unittest_skip" / "unittest_skip_file.py" |
| 22 | + ), |
| 23 | + }, |
| 24 | + { |
| 25 | + "path": os.fspath( |
| 26 | + TEST_DATA_PATH / "unittest_skip" / "unittest_skip_function.py" |
| 27 | + ), |
| 28 | + "name": "unittest_skip_function.py", |
| 29 | + "type_": TestNodeTypeEnum.file, |
| 30 | + "children": [ |
| 31 | + { |
| 32 | + "path": os.fspath( |
| 33 | + TEST_DATA_PATH / "unittest_skip" / "unittest_skip_function.py" |
| 34 | + ), |
| 35 | + "name": "SimpleTest", |
| 36 | + "type_": TestNodeTypeEnum.class_, |
| 37 | + "children": [ |
| 38 | + { |
| 39 | + "name": "testadd1", |
| 40 | + "path": os.fspath( |
| 41 | + TEST_DATA_PATH |
| 42 | + / "unittest_skip" |
| 43 | + / "unittest_skip_function.py" |
| 44 | + ), |
| 45 | + "lineno": "13", |
| 46 | + "type_": TestNodeTypeEnum.test, |
| 47 | + "id_": os.fspath( |
| 48 | + TEST_DATA_PATH |
| 49 | + / "unittest_skip" |
| 50 | + / "unittest_skip_function.py" |
| 51 | + ) |
| 52 | + + "\\SimpleTest\\testadd1", |
| 53 | + "runID": "unittest_skip_function.SimpleTest.testadd1", |
| 54 | + } |
| 55 | + ], |
| 56 | + "id_": os.fspath( |
| 57 | + TEST_DATA_PATH / "unittest_skip" / "unittest_skip_function.py" |
| 58 | + ) |
| 59 | + + "\\SimpleTest", |
| 60 | + } |
| 61 | + ], |
| 62 | + "id_": os.fspath( |
| 63 | + TEST_DATA_PATH / "unittest_skip" / "unittest_skip_function.py" |
| 64 | + ), |
| 65 | + }, |
| 66 | + ], |
| 67 | + "id_": os.fspath(TEST_DATA_PATH / "unittest_skip"), |
| 68 | +} |
0 commit comments