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
We may want to provide an alternative to the register(...) function to inject fixtures in the current module.
I considered having a special variable, like "bdd_fixtures", that the user can declare in the module. We can then check at collection time if a module has this variable and inject the fixtures.
The reason for this is that it's not nice to have to do a from .my_fixtures import * for a user when fixtures are defined across multiple modules and have to be imported in the main conftest.py.
The text was updated successfully, but these errors were encountered:
We may want to provide an alternative to the
register(...)
function to inject fixtures in the current module.I considered having a special variable, like "bdd_fixtures", that the user can declare in the module. We can then check at collection time if a module has this variable and inject the fixtures.
Example:
The reason for this is that it's not nice to have to do a
from .my_fixtures import *
for a user when fixtures are defined across multiple modules and have to be imported in the mainconftest.py
.The text was updated successfully, but these errors were encountered: