|
541 | 541 | "name": "test_adding",
|
542 | 542 | "path": os.fspath(parameterize_tests_path),
|
543 | 543 | "type_": "function",
|
544 |
| - "id_": "parametrize_tests.py::TestClass::test_adding", |
| 544 | + "id_": os.fspath(parameterize_tests_path) + "::TestClass::test_adding", |
545 | 545 | "children": [
|
546 | 546 | {
|
547 | 547 | "name": "[3+5-8]",
|
|
638 | 638 | ),
|
639 | 639 | },
|
640 | 640 | ],
|
641 |
| - "id_": "parametrize_tests.py::test_string", |
| 641 | + "id_": os.fspath(parameterize_tests_path) + "::test_string", |
642 | 642 | },
|
643 | 643 | ],
|
644 | 644 | },
|
|
760 | 760 | ),
|
761 | 761 | },
|
762 | 762 | ],
|
763 |
| - "id_": "param_same_name/test_param1.py::test_odd_even", |
| 763 | + "id_": os.fspath(param1_path) + "::test_odd_even", |
764 | 764 | }
|
765 | 765 | ],
|
766 | 766 | },
|
|
818 | 818 | ),
|
819 | 819 | },
|
820 | 820 | ],
|
821 |
| - "id_": "param_same_name/test_param2.py::test_odd_even", |
| 821 | + "id_": os.fspath(param2_path) + "::test_odd_even", |
822 | 822 | }
|
823 | 823 | ],
|
824 | 824 | },
|
|
1077 | 1077 | ],
|
1078 | 1078 | "id_": str(SYMLINK_FOLDER_PATH),
|
1079 | 1079 | }
|
| 1080 | + |
| 1081 | +same_function_new_class_param_expected_output = { |
| 1082 | + "name": ".data", |
| 1083 | + "path": TEST_DATA_PATH_STR, |
| 1084 | + "type_": "folder", |
| 1085 | + "children": [ |
| 1086 | + { |
| 1087 | + "name": "same_function_new_class_param.py", |
| 1088 | + "path": os.fspath(TEST_DATA_PATH / "same_function_new_class_param.py"), |
| 1089 | + "type_": "file", |
| 1090 | + "id_": os.fspath(TEST_DATA_PATH / "same_function_new_class_param.py"), |
| 1091 | + "children": [ |
| 1092 | + { |
| 1093 | + "name": "TestNotEmpty", |
| 1094 | + "path": os.fspath(TEST_DATA_PATH / "same_function_new_class_param.py"), |
| 1095 | + "type_": "class", |
| 1096 | + "children": [ |
| 1097 | + { |
| 1098 | + "name": "test_integer", |
| 1099 | + "path": os.fspath(TEST_DATA_PATH / "same_function_new_class_param.py"), |
| 1100 | + "type_": "function", |
| 1101 | + "children": [ |
| 1102 | + { |
| 1103 | + "name": "[1-1]", |
| 1104 | + "path": os.fspath( |
| 1105 | + TEST_DATA_PATH / "same_function_new_class_param.py" |
| 1106 | + ), |
| 1107 | + "lineno": find_test_line_number( |
| 1108 | + "TestNotEmpty::test_integer", |
| 1109 | + os.fspath( |
| 1110 | + TEST_DATA_PATH / "same_function_new_class_param.py" |
| 1111 | + ), |
| 1112 | + ), |
| 1113 | + "type_": "test", |
| 1114 | + "id_": get_absolute_test_id( |
| 1115 | + "same_function_new_class_param.py::TestNotEmpty::test_integer[1-1]", |
| 1116 | + TEST_DATA_PATH / "same_function_new_class_param.py", |
| 1117 | + ), |
| 1118 | + "runID": get_absolute_test_id( |
| 1119 | + "same_function_new_class_param.py::TestNotEmpty::test_integer[1-1]", |
| 1120 | + TEST_DATA_PATH / "same_function_new_class_param.py", |
| 1121 | + ), |
| 1122 | + }, |
| 1123 | + { |
| 1124 | + "name": "[2-2]", |
| 1125 | + "path": os.fspath( |
| 1126 | + TEST_DATA_PATH / "same_function_new_class_param.py" |
| 1127 | + ), |
| 1128 | + "lineno": find_test_line_number( |
| 1129 | + "TestNotEmpty::test_integer", |
| 1130 | + os.fspath( |
| 1131 | + TEST_DATA_PATH / "same_function_new_class_param.py" |
| 1132 | + ), |
| 1133 | + ), |
| 1134 | + "type_": "test", |
| 1135 | + "id_": get_absolute_test_id( |
| 1136 | + "same_function_new_class_param.py::TestNotEmpty::test_integer[2-2]", |
| 1137 | + TEST_DATA_PATH / "same_function_new_class_param.py", |
| 1138 | + ), |
| 1139 | + "runID": get_absolute_test_id( |
| 1140 | + "same_function_new_class_param.py::TestNotEmpty::test_integer[2-2]", |
| 1141 | + TEST_DATA_PATH / "same_function_new_class_param.py", |
| 1142 | + ), |
| 1143 | + }, |
| 1144 | + ], |
| 1145 | + "id_": os.fspath(TEST_DATA_PATH / "same_function_new_class_param.py") |
| 1146 | + + "::TestNotEmpty::test_integer", |
| 1147 | + }, |
| 1148 | + { |
| 1149 | + "name": "test_string", |
| 1150 | + "path": os.fspath(TEST_DATA_PATH / "same_function_new_class_param.py"), |
| 1151 | + "type_": "function", |
| 1152 | + "children": [ |
| 1153 | + { |
| 1154 | + "name": "[a-a]", |
| 1155 | + "path": os.fspath( |
| 1156 | + TEST_DATA_PATH / "same_function_new_class_param.py" |
| 1157 | + ), |
| 1158 | + "lineno": find_test_line_number( |
| 1159 | + "TestNotEmpty::test_string", |
| 1160 | + os.fspath( |
| 1161 | + TEST_DATA_PATH / "same_function_new_class_param.py" |
| 1162 | + ), |
| 1163 | + ), |
| 1164 | + "type_": "test", |
| 1165 | + "id_": get_absolute_test_id( |
| 1166 | + "same_function_new_class_param.py::TestNotEmpty::test_string[a-a]", |
| 1167 | + TEST_DATA_PATH / "same_function_new_class_param.py", |
| 1168 | + ), |
| 1169 | + "runID": get_absolute_test_id( |
| 1170 | + "same_function_new_class_param.py::TestNotEmpty::test_string[a-a]", |
| 1171 | + TEST_DATA_PATH / "same_function_new_class_param.py", |
| 1172 | + ), |
| 1173 | + }, |
| 1174 | + { |
| 1175 | + "name": "[b-b]", |
| 1176 | + "path": os.fspath( |
| 1177 | + TEST_DATA_PATH / "same_function_new_class_param.py" |
| 1178 | + ), |
| 1179 | + "lineno": find_test_line_number( |
| 1180 | + "TestNotEmpty::test_string", |
| 1181 | + os.fspath( |
| 1182 | + TEST_DATA_PATH / "same_function_new_class_param.py" |
| 1183 | + ), |
| 1184 | + ), |
| 1185 | + "type_": "test", |
| 1186 | + "id_": get_absolute_test_id( |
| 1187 | + "same_function_new_class_param.py::TestNotEmpty::test_string[b-b]", |
| 1188 | + TEST_DATA_PATH / "same_function_new_class_param.py", |
| 1189 | + ), |
| 1190 | + "runID": get_absolute_test_id( |
| 1191 | + "same_function_new_class_param.py::TestNotEmpty::test_string[b-b]", |
| 1192 | + TEST_DATA_PATH / "same_function_new_class_param.py", |
| 1193 | + ), |
| 1194 | + }, |
| 1195 | + ], |
| 1196 | + "id_": os.fspath(TEST_DATA_PATH / "same_function_new_class_param.py") |
| 1197 | + + "::TestNotEmpty::test_string", |
| 1198 | + }, |
| 1199 | + ], |
| 1200 | + "id_": "same_function_new_class_param.py::TestNotEmpty", |
| 1201 | + }, |
| 1202 | + { |
| 1203 | + "name": "TestEmpty", |
| 1204 | + "path": os.fspath(TEST_DATA_PATH / "same_function_new_class_param.py"), |
| 1205 | + "type_": "class", |
| 1206 | + "children": [ |
| 1207 | + { |
| 1208 | + "name": "test_integer", |
| 1209 | + "path": os.fspath(TEST_DATA_PATH / "same_function_new_class_param.py"), |
| 1210 | + "type_": "function", |
| 1211 | + "children": [ |
| 1212 | + { |
| 1213 | + "name": "[0-0]", |
| 1214 | + "path": os.fspath( |
| 1215 | + TEST_DATA_PATH / "same_function_new_class_param.py" |
| 1216 | + ), |
| 1217 | + "lineno": find_test_line_number( |
| 1218 | + "TestEmpty::test_integer", |
| 1219 | + os.fspath( |
| 1220 | + TEST_DATA_PATH / "same_function_new_class_param.py" |
| 1221 | + ), |
| 1222 | + ), |
| 1223 | + "type_": "test", |
| 1224 | + "id_": get_absolute_test_id( |
| 1225 | + "same_function_new_class_param.py::TestEmpty::test_integer[0-0]", |
| 1226 | + TEST_DATA_PATH / "same_function_new_class_param.py", |
| 1227 | + ), |
| 1228 | + "runID": get_absolute_test_id( |
| 1229 | + "same_function_new_class_param.py::TestEmpty::test_integer[0-0]", |
| 1230 | + TEST_DATA_PATH / "same_function_new_class_param.py", |
| 1231 | + ), |
| 1232 | + }, |
| 1233 | + ], |
| 1234 | + "id_": os.fspath(TEST_DATA_PATH / "same_function_new_class_param.py") |
| 1235 | + + "::TestEmpty::test_integer", |
| 1236 | + }, |
| 1237 | + { |
| 1238 | + "name": "test_string", |
| 1239 | + "path": os.fspath(TEST_DATA_PATH / "same_function_new_class_param.py"), |
| 1240 | + "type_": "function", |
| 1241 | + "children": [ |
| 1242 | + { |
| 1243 | + "name": "[-]", |
| 1244 | + "path": os.fspath( |
| 1245 | + TEST_DATA_PATH / "same_function_new_class_param.py" |
| 1246 | + ), |
| 1247 | + "lineno": find_test_line_number( |
| 1248 | + "TestEmpty::test_string", |
| 1249 | + os.fspath( |
| 1250 | + TEST_DATA_PATH / "same_function_new_class_param.py" |
| 1251 | + ), |
| 1252 | + ), |
| 1253 | + "type_": "test", |
| 1254 | + "id_": get_absolute_test_id( |
| 1255 | + "same_function_new_class_param.py::TestEmpty::test_string[-]", |
| 1256 | + TEST_DATA_PATH / "same_function_new_class_param.py", |
| 1257 | + ), |
| 1258 | + "runID": get_absolute_test_id( |
| 1259 | + "same_function_new_class_param.py::TestEmpty::test_string[-]", |
| 1260 | + TEST_DATA_PATH / "same_function_new_class_param.py", |
| 1261 | + ), |
| 1262 | + }, |
| 1263 | + ], |
| 1264 | + "id_": os.fspath(TEST_DATA_PATH / "same_function_new_class_param.py") |
| 1265 | + + "::TestEmpty::test_string", |
| 1266 | + }, |
| 1267 | + ], |
| 1268 | + "id_": "same_function_new_class_param.py::TestEmpty", |
| 1269 | + }, |
| 1270 | + ], |
| 1271 | + } |
| 1272 | + ], |
| 1273 | + "id_": TEST_DATA_PATH_STR, |
| 1274 | +} |
| 1275 | + |
| 1276 | +print(param_same_name_expected_output) |
0 commit comments