-
-
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.
- Loading branch information
1 parent
be79e8e
commit 7ec34a7
Showing
5 changed files
with
12 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
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,9 +91,10 @@ 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="%s" data-name="%s" ' | ||
'src="https://checkout.stripe.com/checkout.js"></script>' | ||
% (PUBLIC_KEY, store_name) | ||
'data-image="" data-key="{}" data-name="{}" ' | ||
'src="https://checkout.stripe.com/checkout.js"></script>'.format( | ||
PUBLIC_KEY, store_name | ||
) | ||
in str(form) | ||
) | ||
|
||
|
@@ -114,9 +115,10 @@ 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="%s" data-name="%s" ' | ||
'src="https://checkout.stripe.com/checkout.js"></script>' | ||
% (PUBLIC_KEY, store_name) | ||
'data-image="" data-key="{}" data-name="{}" ' | ||
'src="https://checkout.stripe.com/checkout.js"></script>'.format( | ||
PUBLIC_KEY, store_name | ||
) | ||
in str(form) | ||
) | ||
|
||
|
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ select = [ | |
"F", | ||
"W", | ||
"B", | ||
"UP", | ||
"C4", | ||
] | ||
target-version = "py38" | ||
|