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
@last-partizan unfortunately, the global fixture can have only one scope. So no way to make it universal for any scope.
Luckily, a user is still able to override the fixture in the project's conftest.py or any test file like
@pytest.fixture(scope='module')defoverride_config(override_config): # give same name for the custom fixture withoverride_config(API_URL="/awesome/url/"):
yield
So i think this issue is more about mentioning that in the documentation rather than fixing fixture.
django-constance/constance/test/pytest.py
Line 74 in 4e5573e
By default pytest fixture has scope="function", so it can not be used with any scope, as mentioned in docs.
The text was updated successfully, but these errors were encountered: