Run class-wide Django test setup in a temporary context

Some tests create Debusine groups in their setUpTestData method (called by setUpClass), and this uses context.user to add a group audit log entry. Use a temporary context here to avoid potential confusion and strange test failures in case a populated context is somehow left over from a previous test.

Merge request reports

Loading