Remove duplicate path component from doc_examples test names.
This commit is contained in:
parent
718f9d80df
commit
70b03b50c8
|
@ -44,7 +44,7 @@ def pytest_generate_tests(metafunc):
|
||||||
continue
|
continue
|
||||||
examples.append(code)
|
examples.append(code)
|
||||||
path = module.relative_to(FABRIC_ROOT)
|
path = module.relative_to(FABRIC_ROOT)
|
||||||
name = f'{path}/{module.stem}:{last_header}'
|
name = f'{path}:{last_header}'
|
||||||
if index > 1:
|
if index > 1:
|
||||||
name += f' {index}'
|
name += f' {index}'
|
||||||
ids.append(name)
|
ids.append(name)
|
||||||
|
|
Loading…
Reference in New Issue