Closed afuetterer closed 4 months ago
pytest-django offers a admin_client fixture, i.e. a client logged in as an admin user.
Using this fixture reduces the number of "logins" needed in the test suite, offering a tiny performance boost.
It is not "the" rdmo admin (admin:admin), but that was not used in the tests before. So not a problem.
Cool, I was not aware of this.
In case we ever need the "admin user" (from the fixture accounts.json) the be logged in, we can override the admin_client fixture.
Description
pytest-django offers a admin_client fixture, i.e. a client logged in as an admin user.
Using this fixture reduces the number of "logins" needed in the test suite, offering a tiny performance boost.
It is not "the" rdmo admin (admin:admin), but that was not used in the tests before. So not a problem.
Types of Changes
Checklist