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
If these fixtures were not session scoped we would see:
@pytest.fixture
async def second(first):
> assert False
E assert False
However when these fixtures are declared to have a session scope we see:
in call_fixture_func
fixture_result = fixturefunc(**kwargs)
E TypeError: CachedFunction.__call__() got an unexpected keyword argument 'first'
Especially when working with complex and nested fixtures, it's valuable to be able to see the line that causes an error, rather than only an unrelated line belonging to pytest.
The text was updated successfully, but these errors were encountered:
Fixeswillemt#31. This is mostly a cherry-pick of @kstech-roadie's willemt@5d0c7ab, with one additional callsite fixed and a comment added about kwargs support for caching.
If these fixtures were not session scoped we would see:
However when these fixtures are declared to have a session scope we see:
Especially when working with complex and nested fixtures, it's valuable to be able to see the line that causes an error, rather than only an unrelated line belonging to pytest.
The text was updated successfully, but these errors were encountered: