Skip to content

Commit

Permalink
fix: adjust default trial plan
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed May 6, 2024
1 parent 68cdaf6 commit 1ae769c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions weblate/accounts/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ def test_trial(self) -> None:
"""Test for trial form with disabled hosting."""
from weblate.billing.models import Plan

Plan.objects.create(price=1, slug="enterprise")
Plan.objects.create(price=1, slug="640k")
user = self.get_user()
self.client.login(username="testuser", password="testpassword")
response = self.client.get(reverse("trial"))
self.assertContains(response, "Enterprise")
self.assertContains(response, "640k")
response = self.client.post(reverse("trial"), follow=True)
self.assertContains(response, "Create project")
billing = user.billing_set.get()
Expand Down
2 changes: 1 addition & 1 deletion weblate/templates/accounts/trial.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<div class="panel-body">
<ul>
<li>{% trans "Your trial will last 14 days." %}</li>
<li>{% trans "Your trial will run the Enterprise plan, but you can choose any plan later." %}</li>
<li>{% trans "Your trial will run the 640k plan, but you can choose any plan later." %}</li>
<li>{% trans "No credit card is needed, but you can set the payment method anytime." %}</li>
<li>{% trans "All configuration will stay once you start paying." %}</li>
</ul>
Expand Down

0 comments on commit 1ae769c

Please sign in to comment.