mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
API: allow setting password when creating customer (#2758)
Co-authored-by: Raphael Michel <michel@rami.io>
This commit is contained in:
committed by
GitHub
parent
9199d24df2
commit
5a8c567d02
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user