Fix skipped tests in managemails

This commit is contained in:
Jan Dittberner 2023-02-19 15:13:31 +01:00
parent a8392ef91e
commit fc8f22432c
2 changed files with 149 additions and 191 deletions

View file

@ -0,0 +1,13 @@
from django.contrib import auth
from osusers.models import User
def create_test_customer():
customer_model = auth.get_user_model()
return customer_model.objects.create_user("test_customer", "testuser@example.org", "test_password")
def create_test_user():
customer = create_test_customer()
return User.objects.create_user(customer)