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
Because the describe_ functions are evaluated during the test loading/discovery phase, they do not have access to fixtures. You need to do this instead:
It would be nice to be able to do it like in your code, but that is currently not possible. It would require some real "magic" behind the scenes though. The 'user' argument would need to be some kind of proxy that resolved to the actual fixture value inside each test.
"It has the additional advantage that you can have marks and fixtures that apply locally to each group of test function." gave me the impression of sharing fixtures like my example.
Definitively it would be great having the ability to group fixtures. It adds a lot of semantic value.
Hi, could you take a look to the following code?
Getting this error:
describe_create_book needs to share the user fixture to the internal use cases. What I'm doing wrong?
The text was updated successfully, but these errors were encountered: