@@ -554,11 +554,11 @@ def remove_implicit_resolver(cls, tag_to_remove):
554
554
# Now we combine setup, teardown, and test_steps into
555
555
# a set of pytest.param() instances
556
556
for test_number , test_step in test_numbers_and_steps :
557
- # Build the id from the name of the YAML file and
558
- # the number within that file. Most important step
559
- # is to remove most of the file path prefixes and
560
- # the .yml suffix.
561
- pytest_test_name = yaml_file .rpartition ("." )[0 ].replace ("." , "/" )
557
+ # Build the id from the name of the YAML file and the number within
558
+ # that file. Most important step is to remove most of the file path
559
+ # prefixes and the .yml suffix.
560
+ test_path = "/" . join ( yaml_file . split ( "/" )[ 2 :])
561
+ pytest_test_name = test_path .rpartition ("." )[0 ].replace ("." , "/" )
562
562
for prefix in ("rest-api-spec/" , "test/" , "free/" , "platinum/" ):
563
563
if pytest_test_name .startswith (prefix ):
564
564
pytest_test_name = pytest_test_name [len (prefix ) :]
@@ -592,6 +592,6 @@ def _pytest_param_sort_key(param: pytest.param) -> Tuple[Union[str, int], ...]:
592
592
@pytest .mark .parametrize ("test_spec" , YAML_TEST_SPECS )
593
593
def test_rest_api_spec (test_spec , sync_runner ):
594
594
if test_spec .get ("fail" , False ):
595
- pytest .xfail ("Manually marked as failing in 'FAILING_TESTS'" , strict = True )
595
+ pytest .xfail ("Manually marked as failing in 'FAILING_TESTS'" )
596
596
sync_runner .use_spec (test_spec )
597
597
sync_runner .run ()
0 commit comments