Merge branch 'master' into task/3774/update_stripe_subscription_on_vm_delete
This commit is contained in:
commit
1306dbe46a
158 changed files with 4279 additions and 2015 deletions
|
|
@ -736,7 +736,7 @@ msgid "Unknown or unspecified country"
|
|||
msgstr ""
|
||||
|
||||
msgid "Enter your name or company name"
|
||||
msgstr "Geben Sie Ihren Namen oder der Ihrer Firma ein"
|
||||
msgstr "Gib Deinen Namen oder den Name Deines Unternehmens ein"
|
||||
|
||||
msgid "Your username and/or password were incorrect."
|
||||
msgstr "Dein Benutzername und/oder Dein Passwort ist falsch."
|
||||
|
|
@ -795,7 +795,7 @@ msgstr "Es wurde eine E-Mail mit dem Aktivierungslink an Dich gesendet."
|
|||
msgid "Account Activation"
|
||||
msgstr "Accountaktivierung"
|
||||
|
||||
msgid "The link to reset your email has been sent to your email"
|
||||
msgid "The link to reset your password has been sent to your email"
|
||||
msgstr ""
|
||||
"Der Link zum Zurücksetzen deines Passwortes wurde an deine E-Mail gesendet"
|
||||
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ class BillingAddressFormTest(TestCase):
|
|||
|
||||
def setUp(self):
|
||||
self.completed_data = {
|
||||
'cardholder_name': 'test',
|
||||
'street_address': 'street name',
|
||||
'city': 'MyCity',
|
||||
'postal_code': '32123123123123',
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ class BaseTestCase(TestCase):
|
|||
|
||||
# Users
|
||||
self.customer, self.another_customer = mommy.make(
|
||||
'membership.CustomUser',
|
||||
_quantity=2)
|
||||
'membership.CustomUser', validated=1, _quantity=2
|
||||
)
|
||||
self.customer.set_password(self.dummy_password)
|
||||
self.customer.save()
|
||||
self.another_customer.set_password(self.dummy_password)
|
||||
|
|
@ -97,6 +97,9 @@ class BaseTestCase(TestCase):
|
|||
return view
|
||||
|
||||
|
||||
@skipIf(settings.STRIPE_API_PRIVATE_KEY_TEST is None or
|
||||
settings.STRIPE_API_PRIVATE_KEY_TEST is "",
|
||||
"""Skip because STRIPE_API_PRIVATE_KEY_TEST is not set""")
|
||||
class TestStripeCustomerDescription(TestCase):
|
||||
"""
|
||||
A class to test setting the description field of the stripe customer
|
||||
|
|
@ -139,6 +142,10 @@ class TestStripeCustomerDescription(TestCase):
|
|||
self.assertEqual(customer_data.description, self.customer_name)
|
||||
|
||||
|
||||
@skipIf(settings.STRIPE_API_PRIVATE_KEY_TEST == "" or
|
||||
settings.TEST_MANAGE_SSH_KEY_HOST == "",
|
||||
"""Skipping test_save_ssh_key_add because either host
|
||||
or public key were not specified or were empty""")
|
||||
class StripePlanTestCase(TestStripeCustomerDescription):
|
||||
"""
|
||||
A class to test Stripe plans
|
||||
|
|
@ -161,6 +168,10 @@ class StripePlanTestCase(TestStripeCustomerDescription):
|
|||
self.assertIsNone(stripe_plan.get('error'))
|
||||
self.assertIsInstance(stripe_plan.get('response_object'), StripePlan)
|
||||
|
||||
@skipIf(settings.TEST_MANAGE_SSH_KEY_PUBKEY == "" or
|
||||
settings.TEST_MANAGE_SSH_KEY_HOST == "",
|
||||
"""Skipping test_save_ssh_key_add because either host
|
||||
or public key were not specified or were empty""")
|
||||
@patch('utils.stripe_utils.logger')
|
||||
def test_create_duplicate_plans_error_handling(self, mock_logger):
|
||||
"""
|
||||
|
|
@ -254,10 +265,10 @@ class SaveSSHKeyTestCase(TestCase):
|
|||
self.public_key = settings.TEST_MANAGE_SSH_KEY_PUBKEY
|
||||
self.hosts = settings.TEST_MANAGE_SSH_KEY_HOST
|
||||
|
||||
@skipIf(settings.TEST_MANAGE_SSH_KEY_PUBKEY is None or
|
||||
settings.TEST_MANAGE_SSH_KEY_PUBKEY == "" or
|
||||
settings.TEST_MANAGE_SSH_KEY_HOST is None or
|
||||
settings.TEST_MANAGE_SSH_KEY_HOST is "",
|
||||
@skipIf(settings.TEST_MANAGE_SSH_KEY_PUBKEY is "" or
|
||||
settings.TEST_MANAGE_SSH_KEY_PUBKEY is None or
|
||||
settings.TEST_MANAGE_SSH_KEY_HOST is "" or
|
||||
settings.TEST_MANAGE_SSH_KEY_HOST is None,
|
||||
"""Skipping test_save_ssh_key_add because either host
|
||||
or public key were not specified or were empty""")
|
||||
def test_save_ssh_key_add(self):
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ class ResendActivationLinkViewMixin(FormView):
|
|||
|
||||
class PasswordResetViewMixin(FormView):
|
||||
success_message = _(
|
||||
"The link to reset your email has been sent to your email")
|
||||
"The link to reset your password has been sent to your email")
|
||||
site = ''
|
||||
|
||||
def test_generate_email_context(self, user):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue