|
370 | 370 | }
|
371 | 371 | # This is the expected output for the nested_folder tests.
|
372 | 372 | # └── parametrize_tests.py
|
| 373 | +# └── TestClass |
373 | 374 | # └── test_adding[3+5-8]: success
|
374 | 375 | # └── test_adding[2+4-6]: success
|
375 | 376 | # └── test_adding[6+9-16]: failure
|
376 | 377 | parametrize_tests_path = TEST_DATA_PATH / "parametrize_tests.py"
|
377 | 378 |
|
378 | 379 | parametrize_tests_expected_execution_output = {
|
379 |
| - get_absolute_test_id("parametrize_tests.py::test_adding[3+5-8]", parametrize_tests_path): { |
| 380 | + get_absolute_test_id( |
| 381 | + "parametrize_tests.py::TestClass::test_adding[3+5-8]", parametrize_tests_path |
| 382 | + ): { |
380 | 383 | "test": get_absolute_test_id(
|
381 |
| - "parametrize_tests.py::test_adding[3+5-8]", parametrize_tests_path |
| 384 | + "parametrize_tests.py::TestClass::test_adding[3+5-8]", parametrize_tests_path |
382 | 385 | ),
|
383 | 386 | "outcome": "success",
|
384 | 387 | "message": None,
|
385 | 388 | "traceback": None,
|
386 | 389 | "subtest": None,
|
387 | 390 | },
|
388 |
| - get_absolute_test_id("parametrize_tests.py::test_adding[2+4-6]", parametrize_tests_path): { |
| 391 | + get_absolute_test_id( |
| 392 | + "parametrize_tests.py::TestClass::test_adding[2+4-6]", parametrize_tests_path |
| 393 | + ): { |
389 | 394 | "test": get_absolute_test_id(
|
390 |
| - "parametrize_tests.py::test_adding[2+4-6]", parametrize_tests_path |
| 395 | + "parametrize_tests.py::TestClass::test_adding[2+4-6]", parametrize_tests_path |
391 | 396 | ),
|
392 | 397 | "outcome": "success",
|
393 | 398 | "message": None,
|
394 | 399 | "traceback": None,
|
395 | 400 | "subtest": None,
|
396 | 401 | },
|
397 |
| - get_absolute_test_id("parametrize_tests.py::test_adding[6+9-16]", parametrize_tests_path): { |
| 402 | + get_absolute_test_id( |
| 403 | + "parametrize_tests.py::TestClass::test_adding[6+9-16]", parametrize_tests_path |
| 404 | + ): { |
398 | 405 | "test": get_absolute_test_id(
|
399 |
| - "parametrize_tests.py::test_adding[6+9-16]", parametrize_tests_path |
| 406 | + "parametrize_tests.py::TestClass::test_adding[6+9-16]", parametrize_tests_path |
400 | 407 | ),
|
401 | 408 | "outcome": "failure",
|
402 | 409 | "message": "ERROR MESSAGE",
|
|
407 | 414 |
|
408 | 415 | # This is the expected output for the single parameterized tests.
|
409 | 416 | # └── parametrize_tests.py
|
| 417 | +# └── TestClass |
410 | 418 | # └── test_adding[3+5-8]: success
|
411 | 419 | single_parametrize_tests_expected_execution_output = {
|
412 |
| - get_absolute_test_id("parametrize_tests.py::test_adding[3+5-8]", parametrize_tests_path): { |
| 420 | + get_absolute_test_id( |
| 421 | + "parametrize_tests.py::TestClass::test_adding[3+5-8]", parametrize_tests_path |
| 422 | + ): { |
413 | 423 | "test": get_absolute_test_id(
|
414 |
| - "parametrize_tests.py::test_adding[3+5-8]", parametrize_tests_path |
| 424 | + "parametrize_tests.py::TestClass::test_adding[3+5-8]", parametrize_tests_path |
415 | 425 | ),
|
416 | 426 | "outcome": "success",
|
417 | 427 | "message": None,
|
|
0 commit comments