Skip to content

Commit

Permalink
Fix test failing due to would_be_org_admin widget change
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsetzer committed Sep 5, 2024
1 parent 0ddedd0 commit eecb83f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion perma_web/perma/tests/test_views_user_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -2310,6 +2310,7 @@ def test_new_firm_success(self):
'sign_up_firm',
data={
'e-address': self.randomize_capitalization(existing_user['email']),
'would_be_org_admin': firm_user_form['would_be_org_admin'],
**firm_organization_form,
**firm_usage_form,
},
Expand All @@ -2324,6 +2325,7 @@ def test_new_firm_success(self):
'sign_up_firm',
data={
'e-address': firm_user_form['raw_email'],
'would_be_org_admin': firm_user_form['would_be_org_admin'],
**firm_organization_form,
**firm_usage_form,
},
Expand All @@ -2338,6 +2340,7 @@ def test_new_firm_success(self):
'sign_up_firm',
data={
'e-address': firm_user_form['raw_email'],
'would_be_org_admin': firm_user_form['would_be_org_admin'],
**firm_organization_form,
**firm_usage_form,
'create_account': True,
Expand All @@ -2360,6 +2363,7 @@ def test_new_firm_success(self):
'sign_up_firm',
data={
'e-address': firm_user_form['raw_email'],
'would_be_org_admin': firm_user_form['would_be_org_admin'],
**firm_organization_form,
**firm_usage_form,
'create_account': True,
Expand All @@ -2380,6 +2384,7 @@ def test_new_firm_success(self):
'sign_up_firm',
data={
'e-address': self.randomize_capitalization(existing_user['email']),
'would_be_org_admin': firm_user_form['would_be_org_admin'],
**firm_organization_form,
**firm_usage_form,
'create_account': True,
Expand Down Expand Up @@ -2433,7 +2438,7 @@ def test_new_firm_failure(self):
data={},
form_keys=['organization_form', 'usage_form', 'user_form'],
user='[email protected]',
error_keys=['email'],
error_keys=['email', 'would_be_org_admin'],
)
self.assertEqual(len(mail.outbox), 0)

Expand Down

0 comments on commit eecb83f

Please sign in to comment.