|
886 | 886 | ], |
887 | 887 | "id_": os.fspath(tests_path), |
888 | 888 | } |
| 889 | +TEST_MULTI_CLASS_NEST_PATH = TEST_DATA_PATH / "test_multi_class_nest.py" |
| 890 | + |
| 891 | +nested_classes_expected_test_output = { |
| 892 | + "name": ".data", |
| 893 | + "path": TEST_DATA_PATH_STR, |
| 894 | + "type_": "folder", |
| 895 | + "children": [ |
| 896 | + { |
| 897 | + "name": "test_multi_class_nest.py", |
| 898 | + "path": str(TEST_MULTI_CLASS_NEST_PATH), |
| 899 | + "type_": "file", |
| 900 | + "id_": str(TEST_MULTI_CLASS_NEST_PATH), |
| 901 | + "children": [ |
| 902 | + { |
| 903 | + "name": "TestFirstClass", |
| 904 | + "path": str(TEST_MULTI_CLASS_NEST_PATH), |
| 905 | + "type_": "class", |
| 906 | + "id_": "test_multi_class_nest.py::TestFirstClass", |
| 907 | + "children": [ |
| 908 | + { |
| 909 | + "name": "TestSecondClass", |
| 910 | + "path": str(TEST_MULTI_CLASS_NEST_PATH), |
| 911 | + "type_": "class", |
| 912 | + "id_": "test_multi_class_nest.py::TestFirstClass::TestSecondClass", |
| 913 | + "children": [ |
| 914 | + { |
| 915 | + "name": "test_second", |
| 916 | + "path": str(TEST_MULTI_CLASS_NEST_PATH), |
| 917 | + "lineno": find_test_line_number( |
| 918 | + "test_second", |
| 919 | + str(TEST_MULTI_CLASS_NEST_PATH), |
| 920 | + ), |
| 921 | + "type_": "test", |
| 922 | + "id_": get_absolute_test_id( |
| 923 | + "test_multi_class_nest.py::TestFirstClass::TestSecondClass::test_second", |
| 924 | + TEST_MULTI_CLASS_NEST_PATH, |
| 925 | + ), |
| 926 | + "runID": get_absolute_test_id( |
| 927 | + "test_multi_class_nest.py::TestFirstClass::TestSecondClass::test_second", |
| 928 | + TEST_MULTI_CLASS_NEST_PATH, |
| 929 | + ), |
| 930 | + } |
| 931 | + ], |
| 932 | + }, |
| 933 | + { |
| 934 | + "name": "test_first", |
| 935 | + "path": str(TEST_MULTI_CLASS_NEST_PATH), |
| 936 | + "lineno": find_test_line_number( |
| 937 | + "test_first", str(TEST_MULTI_CLASS_NEST_PATH) |
| 938 | + ), |
| 939 | + "type_": "test", |
| 940 | + "id_": get_absolute_test_id( |
| 941 | + "test_multi_class_nest.py::TestFirstClass::test_first", |
| 942 | + TEST_MULTI_CLASS_NEST_PATH, |
| 943 | + ), |
| 944 | + "runID": get_absolute_test_id( |
| 945 | + "test_multi_class_nest.py::TestFirstClass::test_first", |
| 946 | + TEST_MULTI_CLASS_NEST_PATH, |
| 947 | + ), |
| 948 | + }, |
| 949 | + { |
| 950 | + "name": "TestSecondClass2", |
| 951 | + "path": str(TEST_MULTI_CLASS_NEST_PATH), |
| 952 | + "type_": "class", |
| 953 | + "id_": "test_multi_class_nest.py::TestFirstClass::TestSecondClass2", |
| 954 | + "children": [ |
| 955 | + { |
| 956 | + "name": "test_second2", |
| 957 | + "path": str(TEST_MULTI_CLASS_NEST_PATH), |
| 958 | + "lineno": find_test_line_number( |
| 959 | + "test_second2", |
| 960 | + str(TEST_MULTI_CLASS_NEST_PATH), |
| 961 | + ), |
| 962 | + "type_": "test", |
| 963 | + "id_": get_absolute_test_id( |
| 964 | + "test_multi_class_nest.py::TestFirstClass::TestSecondClass2::test_second2", |
| 965 | + TEST_MULTI_CLASS_NEST_PATH, |
| 966 | + ), |
| 967 | + "runID": get_absolute_test_id( |
| 968 | + "test_multi_class_nest.py::TestFirstClass::TestSecondClass2::test_second2", |
| 969 | + TEST_MULTI_CLASS_NEST_PATH, |
| 970 | + ), |
| 971 | + } |
| 972 | + ], |
| 973 | + }, |
| 974 | + ], |
| 975 | + }, |
| 976 | + { |
| 977 | + "name": "test_independent", |
| 978 | + "path": str(TEST_MULTI_CLASS_NEST_PATH), |
| 979 | + "lineno": find_test_line_number( |
| 980 | + "test_independent", str(TEST_MULTI_CLASS_NEST_PATH) |
| 981 | + ), |
| 982 | + "type_": "test", |
| 983 | + "id_": get_absolute_test_id( |
| 984 | + "test_multi_class_nest.py::test_independent", |
| 985 | + TEST_MULTI_CLASS_NEST_PATH, |
| 986 | + ), |
| 987 | + "runID": get_absolute_test_id( |
| 988 | + "test_multi_class_nest.py::test_independent", |
| 989 | + TEST_MULTI_CLASS_NEST_PATH, |
| 990 | + ), |
| 991 | + }, |
| 992 | + ], |
| 993 | + } |
| 994 | + ], |
| 995 | + "id_": str(TEST_DATA_PATH), |
| 996 | +} |
0 commit comments