API: allow setting password when creating customer (#2758)

Co-authored-by: Raphael Michel <michel@rami.io>
This commit is contained in:
Michael Stapelberg
2022-08-16 14:40:24 +02:00
committed by GitHub
parent 9199d24df2
commit 5a8c567d02
4 changed files with 14 additions and 4 deletions

View File

@@ -82,6 +82,7 @@ def test_customer_create(token_client, organizer):
data={
'identifier': 'IGNORED',
'email': 'bar@example.com',
'password': 'foobar',
'name_parts': {
"_scheme": "given_family",
'given_name': 'John',
@@ -99,6 +100,7 @@ def test_customer_create(token_client, organizer):
assert customer.is_active
assert customer.name == 'John Doe'
assert customer.is_verified
assert customer.check_password('foobar')
assert len(djmail.outbox) == 0