-
-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
dbaf98a
commit 17d505e
Showing
2 changed files
with
6 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,11 +91,8 @@ def test_form_contains_stripe_script(self): | |
self.assertTrue( | ||
'<script class="stripe-button" data-amount="10000" ' | ||
'data-currency="USD" data-description="payment" data-email="[email protected]" ' | ||
'data-image="" data-key="{}" data-name="{}" ' | ||
'src="https://checkout.stripe.com/checkout.js"></script>'.format( | ||
PUBLIC_KEY, store_name | ||
) | ||
in str(form) | ||
f'data-image="" data-key="{PUBLIC_KEY}" data-name="{store_name}" ' | ||
'src="https://checkout.stripe.com/checkout.js"></script>' in str(form) | ||
) | ||
|
||
def test_form_contains_stripe_script_without_billing_email(self): | ||
|
@@ -115,11 +112,8 @@ def test_form_contains_stripe_script_without_billing_email(self): | |
self.assertTrue( | ||
'<script class="stripe-button" data-amount="10000" ' | ||
'data-currency="USD" data-description="payment" ' | ||
'data-image="" data-key="{}" data-name="{}" ' | ||
'src="https://checkout.stripe.com/checkout.js"></script>'.format( | ||
PUBLIC_KEY, store_name | ||
) | ||
in str(form) | ||
f'data-image="" data-key="{PUBLIC_KEY}" data-name="{store_name}" ' | ||
'src="https://checkout.stripe.com/checkout.js"></script>' in str(form) | ||
) | ||
|
||
def test_provider_raises_redirect_needed_when_token_does_not_exist(self): | ||
|