|
91 | 91 | ),
|
92 | 92 | }
|
93 | 93 | ],
|
94 |
| - "id_": "unittest_pytest_same_file.py::TestExample", |
| 94 | + "id_": get_absolute_test_id( |
| 95 | + "unittest_pytest_same_file.py::TestExample", |
| 96 | + unit_pytest_same_file_path, |
| 97 | + ), |
95 | 98 | },
|
96 | 99 | {
|
97 | 100 | "name": "test_true_pytest",
|
|
200 | 203 | ),
|
201 | 204 | },
|
202 | 205 | ],
|
203 |
| - "id_": "unittest_folder/test_add.py::TestAddFunction", |
| 206 | + "id_": get_absolute_test_id( |
| 207 | + "unittest_folder/test_add.py::TestAddFunction", |
| 208 | + test_add_path, |
| 209 | + ), |
204 | 210 | },
|
205 | 211 | {
|
206 | 212 | "name": "TestDuplicateFunction",
|
|
225 | 231 | ),
|
226 | 232 | },
|
227 | 233 | ],
|
228 |
| - "id_": "unittest_folder/test_add.py::TestDuplicateFunction", |
| 234 | + "id_": get_absolute_test_id( |
| 235 | + "unittest_folder/test_add.py::TestDuplicateFunction", |
| 236 | + test_add_path, |
| 237 | + ), |
229 | 238 | },
|
230 | 239 | ],
|
231 | 240 | },
|
|
275 | 284 | ),
|
276 | 285 | },
|
277 | 286 | ],
|
278 |
| - "id_": "unittest_folder/test_subtract.py::TestSubtractFunction", |
| 287 | + "id_": get_absolute_test_id( |
| 288 | + "unittest_folder/test_subtract.py::TestSubtractFunction", |
| 289 | + test_subtract_path, |
| 290 | + ), |
279 | 291 | },
|
280 | 292 | {
|
281 | 293 | "name": "TestDuplicateFunction",
|
|
300 | 312 | ),
|
301 | 313 | },
|
302 | 314 | ],
|
303 |
| - "id_": "unittest_folder/test_subtract.py::TestDuplicateFunction", |
| 315 | + "id_": get_absolute_test_id( |
| 316 | + "unittest_folder/test_subtract.py::TestDuplicateFunction", |
| 317 | + test_subtract_path, |
| 318 | + ), |
304 | 319 | },
|
305 | 320 | ],
|
306 | 321 | },
|
|
534 | 549 | "name": "TestClass",
|
535 | 550 | "path": os.fspath(parameterize_tests_path),
|
536 | 551 | "type_": "class",
|
537 |
| - "id_": "parametrize_tests.py::TestClass", |
| 552 | + "id_": get_absolute_test_id( |
| 553 | + "parametrize_tests.py::TestClass", |
| 554 | + parameterize_tests_path, |
| 555 | + ), |
538 | 556 | "children": [
|
539 | 557 | {
|
540 | 558 | "name": "test_adding",
|
|
907 | 925 | "name": "TestFirstClass",
|
908 | 926 | "path": str(TEST_MULTI_CLASS_NEST_PATH),
|
909 | 927 | "type_": "class",
|
910 |
| - "id_": "test_multi_class_nest.py::TestFirstClass", |
| 928 | + "id_": get_absolute_test_id( |
| 929 | + "test_multi_class_nest.py::TestFirstClass", |
| 930 | + TEST_MULTI_CLASS_NEST_PATH, |
| 931 | + ), |
911 | 932 | "children": [
|
912 | 933 | {
|
913 | 934 | "name": "TestSecondClass",
|
914 | 935 | "path": str(TEST_MULTI_CLASS_NEST_PATH),
|
915 | 936 | "type_": "class",
|
916 |
| - "id_": "test_multi_class_nest.py::TestFirstClass::TestSecondClass", |
| 937 | + "id_": get_absolute_test_id( |
| 938 | + "test_multi_class_nest.py::TestFirstClass::TestSecondClass", |
| 939 | + TEST_MULTI_CLASS_NEST_PATH, |
| 940 | + ), |
917 | 941 | "children": [
|
918 | 942 | {
|
919 | 943 | "name": "test_second",
|
|
954 | 978 | "name": "TestSecondClass2",
|
955 | 979 | "path": str(TEST_MULTI_CLASS_NEST_PATH),
|
956 | 980 | "type_": "class",
|
957 |
| - "id_": "test_multi_class_nest.py::TestFirstClass::TestSecondClass2", |
| 981 | + "id_": get_absolute_test_id( |
| 982 | + "test_multi_class_nest.py::TestFirstClass::TestSecondClass2", |
| 983 | + TEST_MULTI_CLASS_NEST_PATH, |
| 984 | + ), |
958 | 985 | "children": [
|
959 | 986 | {
|
960 | 987 | "name": "test_second2",
|
|
1196 | 1223 | + "::TestNotEmpty::test_string",
|
1197 | 1224 | },
|
1198 | 1225 | ],
|
1199 |
| - "id_": "same_function_new_class_param.py::TestNotEmpty", |
| 1226 | + "id_": get_absolute_test_id( |
| 1227 | + "same_function_new_class_param.py::TestNotEmpty", |
| 1228 | + TEST_DATA_PATH / "same_function_new_class_param.py", |
| 1229 | + ), |
1200 | 1230 | },
|
1201 | 1231 | {
|
1202 | 1232 | "name": "TestEmpty",
|
|
1264 | 1294 | + "::TestEmpty::test_string",
|
1265 | 1295 | },
|
1266 | 1296 | ],
|
1267 |
| - "id_": "same_function_new_class_param.py::TestEmpty", |
| 1297 | + "id_": get_absolute_test_id( |
| 1298 | + "same_function_new_class_param.py::TestEmpty", |
| 1299 | + TEST_DATA_PATH / "same_function_new_class_param.py", |
| 1300 | + ), |
1268 | 1301 | },
|
1269 | 1302 | ],
|
1270 | 1303 | }
|
|
1334 | 1367 | ),
|
1335 | 1368 | }
|
1336 | 1369 | ],
|
1337 |
| - "id_": "test_param_span_class.py::TestClass1", |
| 1370 | + "id_": get_absolute_test_id( |
| 1371 | + "test_param_span_class.py::TestClass1", |
| 1372 | + TEST_DATA_PATH / "test_param_span_class.py", |
| 1373 | + ), |
1338 | 1374 | },
|
1339 | 1375 | {
|
1340 | 1376 | "name": "TestClass2",
|
|
1387 | 1423 | ),
|
1388 | 1424 | }
|
1389 | 1425 | ],
|
1390 |
| - "id_": "test_param_span_class.py::TestClass2", |
| 1426 | + "id_": get_absolute_test_id( |
| 1427 | + "test_param_span_class.py::TestClass2", |
| 1428 | + TEST_DATA_PATH / "test_param_span_class.py", |
| 1429 | + ), |
1391 | 1430 | },
|
1392 | 1431 | ],
|
1393 | 1432 | }
|
|
1460 | 1499 | ),
|
1461 | 1500 | },
|
1462 | 1501 | ],
|
1463 |
| - "id_": "pytest_describe_plugin/describe_only.py::describe_A", |
| 1502 | + "id_": get_absolute_test_id( |
| 1503 | + "pytest_describe_plugin/describe_only.py::describe_A", |
| 1504 | + describe_only_path, |
| 1505 | + ), |
1464 | 1506 | }
|
1465 | 1507 | ],
|
1466 | 1508 | }
|
|
1540 | 1582 | ),
|
1541 | 1583 | },
|
1542 | 1584 | ],
|
1543 |
| - "id_": "pytest_describe_plugin/nested_describe.py::describe_list::describe_append", |
| 1585 | + "id_": get_absolute_test_id( |
| 1586 | + "pytest_describe_plugin/nested_describe.py::describe_list::describe_append", |
| 1587 | + nested_describe_path, |
| 1588 | + ), |
1544 | 1589 | },
|
1545 | 1590 | {
|
1546 | 1591 | "name": "describe_remove",
|
|
1565 | 1610 | ),
|
1566 | 1611 | }
|
1567 | 1612 | ],
|
1568 |
| - "id_": "pytest_describe_plugin/nested_describe.py::describe_list::describe_remove", |
| 1613 | + "id_": get_absolute_test_id( |
| 1614 | + "pytest_describe_plugin/nested_describe.py::describe_list::describe_remove", |
| 1615 | + nested_describe_path, |
| 1616 | + ), |
1569 | 1617 | },
|
1570 | 1618 | ],
|
1571 |
| - "id_": "pytest_describe_plugin/nested_describe.py::describe_list", |
| 1619 | + "id_": get_absolute_test_id( |
| 1620 | + "pytest_describe_plugin/nested_describe.py::describe_list", |
| 1621 | + nested_describe_path, |
| 1622 | + ), |
1572 | 1623 | }
|
1573 | 1624 | ],
|
1574 | 1625 | }
|
|
0 commit comments