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
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.
The text was updated successfully, but these errors were encountered:
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] ___________
Currently:
Is reported as:
It would be nice if it was reported as:
This is especially useful when calling the same function from within multiple sub-tests, when the same
<name>
can be used in multiplesubtests.test(<name>)
, but in different scopes.The text was updated successfully, but these errors were encountered: