You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 11, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 11, 2025. It is now read-only.
This is especially useful when calling the same function from within multiple sub-tests, when the same <name> can be used in multiple subtests.test(<name>), but in different scopes.
In case someone else is interested, I've implemented a small wrapper around subtests which add #44 and #45 (this issue):
frometilsimportepywith_subtests=epy.testing.with_subtests# Needed to register the fixture for this file@pytest.mark.usefixtures('with_subtests')deftest_dtype():
withepy.testing.subtests.test("a"): # Do not need to propagate a subtests object in sub-functionswithepy.testing.subtests.test("b"): # Nested subtest is reported as `a/b`assert1==2
Test reported as ___________ test_abc [a/b] ___________
Activity
nicoddemus commentedon Jul 5, 2021
Makes sense, thanks for the suggestion!
plaffitt commentedon Dec 15, 2021
This is definitely a must have!
Conchylicultor commentedon Sep 8, 2022
In case someone else is interested, I've implemented a small wrapper around subtests which add #44 and #45 (this issue):
Test reported as
___________ test_abc [a/b] ___________As part of https://github.com/google/etils