|
1273 | 1273 | "id_": TEST_DATA_PATH_STR,
|
1274 | 1274 | }
|
1275 | 1275 |
|
1276 |
| -print(param_same_name_expected_output) |
| 1276 | +test_param_span_class_expected_output = { |
| 1277 | + "name": ".data", |
| 1278 | + "path": TEST_DATA_PATH_STR, |
| 1279 | + "type_": "folder", |
| 1280 | + "children": [ |
| 1281 | + { |
| 1282 | + "name": "test_param_span_class.py", |
| 1283 | + "path": os.fspath(TEST_DATA_PATH / "test_param_span_class.py"), |
| 1284 | + "type_": "file", |
| 1285 | + "id_": os.fspath(TEST_DATA_PATH / "test_param_span_class.py"), |
| 1286 | + "children": [ |
| 1287 | + { |
| 1288 | + "name": "TestClass1", |
| 1289 | + "path": os.fspath(TEST_DATA_PATH / "test_param_span_class.py"), |
| 1290 | + "type_": "class", |
| 1291 | + "children": [ |
| 1292 | + { |
| 1293 | + "name": "test_method1", |
| 1294 | + "path": os.fspath(TEST_DATA_PATH / "test_param_span_class.py"), |
| 1295 | + "type_": "function", |
| 1296 | + "children": [ |
| 1297 | + { |
| 1298 | + "name": "[1]", |
| 1299 | + "path": os.fspath(TEST_DATA_PATH / "test_param_span_class.py"), |
| 1300 | + "lineno": find_test_line_number( |
| 1301 | + "TestClass1::test_method1", |
| 1302 | + os.fspath(TEST_DATA_PATH / "test_param_span_class.py"), |
| 1303 | + ), |
| 1304 | + "type_": "test", |
| 1305 | + "id_": get_absolute_test_id( |
| 1306 | + "test_param_span_class.py::TestClass1::test_method1[1]", |
| 1307 | + TEST_DATA_PATH / "test_param_span_class.py", |
| 1308 | + ), |
| 1309 | + "runID": get_absolute_test_id( |
| 1310 | + "test_param_span_class.py::TestClass1::test_method1[1]", |
| 1311 | + TEST_DATA_PATH / "test_param_span_class.py", |
| 1312 | + ), |
| 1313 | + }, |
| 1314 | + { |
| 1315 | + "name": "[2]", |
| 1316 | + "path": os.fspath(TEST_DATA_PATH / "test_param_span_class.py"), |
| 1317 | + "lineno": find_test_line_number( |
| 1318 | + "TestClass1::test_method1", |
| 1319 | + os.fspath(TEST_DATA_PATH / "test_param_span_class.py"), |
| 1320 | + ), |
| 1321 | + "type_": "test", |
| 1322 | + "id_": get_absolute_test_id( |
| 1323 | + "test_param_span_class.py::TestClass1::test_method1[2]", |
| 1324 | + TEST_DATA_PATH / "test_param_span_class.py", |
| 1325 | + ), |
| 1326 | + "runID": get_absolute_test_id( |
| 1327 | + "test_param_span_class.py::TestClass1::test_method1[2]", |
| 1328 | + TEST_DATA_PATH / "test_param_span_class.py", |
| 1329 | + ), |
| 1330 | + }, |
| 1331 | + ], |
| 1332 | + "id_": os.fspath( |
| 1333 | + TEST_DATA_PATH |
| 1334 | + / "test_param_span_class.py::TestClass1::test_method1" |
| 1335 | + ), |
| 1336 | + } |
| 1337 | + ], |
| 1338 | + "id_": "test_param_span_class.py::TestClass1", |
| 1339 | + }, |
| 1340 | + { |
| 1341 | + "name": "TestClass2", |
| 1342 | + "path": os.fspath(TEST_DATA_PATH / "test_param_span_class.py"), |
| 1343 | + "type_": "class", |
| 1344 | + "children": [ |
| 1345 | + { |
| 1346 | + "name": "test_method1", |
| 1347 | + "path": os.fspath(TEST_DATA_PATH / "test_param_span_class.py"), |
| 1348 | + "type_": "function", |
| 1349 | + "children": [ |
| 1350 | + { |
| 1351 | + "name": "[1]", |
| 1352 | + "path": os.fspath(TEST_DATA_PATH / "test_param_span_class.py"), |
| 1353 | + "lineno": find_test_line_number( |
| 1354 | + "TestClass2::test_method1", |
| 1355 | + os.fspath(TEST_DATA_PATH / "test_param_span_class.py"), |
| 1356 | + ), |
| 1357 | + "type_": "test", |
| 1358 | + "id_": get_absolute_test_id( |
| 1359 | + "test_param_span_class.py::TestClass2::test_method1[1]", |
| 1360 | + TEST_DATA_PATH / "test_param_span_class.py", |
| 1361 | + ), |
| 1362 | + "runID": get_absolute_test_id( |
| 1363 | + "test_param_span_class.py::TestClass2::test_method1[1]", |
| 1364 | + TEST_DATA_PATH / "test_param_span_class.py", |
| 1365 | + ), |
| 1366 | + }, |
| 1367 | + { |
| 1368 | + "name": "[2]", |
| 1369 | + "path": os.fspath(TEST_DATA_PATH / "test_param_span_class.py"), |
| 1370 | + "lineno": find_test_line_number( |
| 1371 | + "TestClass2::test_method1", |
| 1372 | + os.fspath(TEST_DATA_PATH / "test_param_span_class.py"), |
| 1373 | + ), |
| 1374 | + "type_": "test", |
| 1375 | + "id_": get_absolute_test_id( |
| 1376 | + "test_param_span_class.py::TestClass2::test_method1[2]", |
| 1377 | + TEST_DATA_PATH / "test_param_span_class.py", |
| 1378 | + ), |
| 1379 | + "runID": get_absolute_test_id( |
| 1380 | + "test_param_span_class.py::TestClass2::test_method1[2]", |
| 1381 | + TEST_DATA_PATH / "test_param_span_class.py", |
| 1382 | + ), |
| 1383 | + }, |
| 1384 | + ], |
| 1385 | + "id_": os.fspath( |
| 1386 | + TEST_DATA_PATH |
| 1387 | + / "test_param_span_class.py::TestClass2::test_method1" |
| 1388 | + ), |
| 1389 | + } |
| 1390 | + ], |
| 1391 | + "id_": "test_param_span_class.py::TestClass2", |
| 1392 | + }, |
| 1393 | + ], |
| 1394 | + } |
| 1395 | + ], |
| 1396 | + "id_": TEST_DATA_PATH_STR, |
| 1397 | +} |
0 commit comments