Merge pull request #796 from GoogleCloudPlatform/jccb/test-examples-fix-name

Remove duplicate path component from doc_examples test names.
This commit is contained in:
Julio Castillo 2022-09-07 11:37:19 +02:00 committed by GitHub
commit 1e62078e37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ def pytest_generate_tests(metafunc):
continue
examples.append(code)
path = module.relative_to(FABRIC_ROOT)
name = f'{path}/{module.stem}:{last_header}'
name = f'{path}:{last_header}'
if index > 1:
name += f' {index}'
ids.append(name)