|
474 | 474 | ], |
475 | 475 | "id_": TEST_DATA_PATH_STR, |
476 | 476 | } |
| 477 | + |
| 478 | +# This is the expected output for the param_same_name tests. |
| 479 | +# └── param_same_name |
| 480 | +# └── test_param1.py |
| 481 | +# └── test_odd_even |
| 482 | +# └── [a] |
| 483 | +# └── [b] |
| 484 | +# └── [c] |
| 485 | +# └── test_param2.py |
| 486 | +# └── test_odd_even |
| 487 | +# └── [1] |
| 488 | +# └── [2] |
| 489 | +# └── [3] |
| 490 | +param1_path = os.fspath(TEST_DATA_PATH / "param_same_name" / "test_param1.py") |
| 491 | +param2_path = os.fspath(TEST_DATA_PATH / "param_same_name" / "test_param2.py") |
| 492 | +param_same_name_expected_output = { |
| 493 | + "name": ".data", |
| 494 | + "path": TEST_DATA_PATH_STR, |
| 495 | + "type_": "folder", |
| 496 | + "children": [ |
| 497 | + { |
| 498 | + "name": "param_same_name", |
| 499 | + "path": os.fspath(TEST_DATA_PATH / "param_same_name"), |
| 500 | + "type_": "folder", |
| 501 | + "id_": os.fspath(TEST_DATA_PATH / "param_same_name"), |
| 502 | + "children": [ |
| 503 | + { |
| 504 | + "name": "test_param1.py", |
| 505 | + "path": param1_path, |
| 506 | + "type_": "file", |
| 507 | + "id_": param1_path, |
| 508 | + "children": [ |
| 509 | + { |
| 510 | + "name": "test_odd_even", |
| 511 | + "path": param1_path, |
| 512 | + "type_": "function", |
| 513 | + "children": [ |
| 514 | + { |
| 515 | + "name": "[a]", |
| 516 | + "path": param1_path, |
| 517 | + "lineno": "6", |
| 518 | + "type_": "test", |
| 519 | + "id_": "param_same_name/test_param1.py::test_odd_even[a]", |
| 520 | + "runID": "param_same_name/test_param1.py::test_odd_even[a]", |
| 521 | + }, |
| 522 | + { |
| 523 | + "name": "[b]", |
| 524 | + "path": param1_path, |
| 525 | + "lineno": "6", |
| 526 | + "type_": "test", |
| 527 | + "id_": "param_same_name/test_param1.py::test_odd_even[b]", |
| 528 | + "runID": "param_same_name/test_param1.py::test_odd_even[b]", |
| 529 | + }, |
| 530 | + { |
| 531 | + "name": "[c]", |
| 532 | + "path": param1_path, |
| 533 | + "lineno": "6", |
| 534 | + "type_": "test", |
| 535 | + "id_": "param_same_name/test_param1.py::test_odd_even[c]", |
| 536 | + "runID": "param_same_name/test_param1.py::test_odd_even[c]", |
| 537 | + }, |
| 538 | + ], |
| 539 | + "id_": "param_same_name/test_param1.py::test_odd_even", |
| 540 | + } |
| 541 | + ], |
| 542 | + }, |
| 543 | + { |
| 544 | + "name": "test_param2.py", |
| 545 | + "path": param2_path, |
| 546 | + "type_": "file", |
| 547 | + "id_": param2_path, |
| 548 | + "children": [ |
| 549 | + { |
| 550 | + "name": "test_odd_even", |
| 551 | + "path": param2_path, |
| 552 | + "type_": "function", |
| 553 | + "children": [ |
| 554 | + { |
| 555 | + "name": "[1]", |
| 556 | + "path": param2_path, |
| 557 | + "lineno": "6", |
| 558 | + "type_": "test", |
| 559 | + "id_": "param_same_name/test_param2.py::test_odd_even[1]", |
| 560 | + "runID": "param_same_name/test_param2.py::test_odd_even[1]", |
| 561 | + }, |
| 562 | + { |
| 563 | + "name": "[2]", |
| 564 | + "path": param2_path, |
| 565 | + "lineno": "6", |
| 566 | + "type_": "test", |
| 567 | + "id_": "param_same_name/test_param2.py::test_odd_even[2]", |
| 568 | + "runID": "param_same_name/test_param2.py::test_odd_even[2]", |
| 569 | + }, |
| 570 | + { |
| 571 | + "name": "[3]", |
| 572 | + "path": param2_path, |
| 573 | + "lineno": "6", |
| 574 | + "type_": "test", |
| 575 | + "id_": "param_same_name/test_param2.py::test_odd_even[3]", |
| 576 | + "runID": "param_same_name/test_param2.py::test_odd_even[3]", |
| 577 | + }, |
| 578 | + ], |
| 579 | + "id_": "param_same_name/test_param2.py::test_odd_even", |
| 580 | + } |
| 581 | + ], |
| 582 | + }, |
| 583 | + ], |
| 584 | + } |
| 585 | + ], |
| 586 | + "id_": TEST_DATA_PATH_STR, |
| 587 | +} |
0 commit comments