Fixing register test

remotes/origin/enhancement/email-actions
Alejandro Alonso 2015-01-13 11:24:37 +01:00
parent fd0c4faf7b
commit df282a0c94
3 changed files with 14 additions and 12 deletions

View File

@ -22,7 +22,7 @@
<strong>Support:</strong> <strong>Support:</strong>
<a href="mailto:support@taiga.io" title="Taiga Support">support@taiga.io</a> <a href="mailto:support@taiga.io" title="Taiga Support">support@taiga.io</a>
<br> <br>
<strong>Our mailing address is:</strong> <strong>Our mailing list is:</strong>
<a href="https://groups.google.com/forum/#!forum/taigaio" title="Taiga mailing list">https://groups.google.com/forum/#!forum/taigaio</a> <a href="https://groups.google.com/forum/#!forum/taigaio" title="Taiga mailing list">https://groups.google.com/forum/#!forum/taigaio</a>
<br /> <br />
<br /> <br />

View File

@ -1,12 +1,18 @@
Welcome to Taiga, an Open Source, Agile Project Management Tool Thank you for registering in Taiga
You, or someone you know has invited you to Taiga. You may remove your account from this service by clicking here: We hope you enjoy it
{{ resolve_front_url('cancel-account', cancel_token) }} We built Taiga because we wanted the project management tool that sits open on our computers all day long, to serve as a continued reminder of why we love to collaborate, code and design.
We built Taiga because we wanted the project management tool that sits open on our computers all day long, to serve as a continued reminder of why we love to collaborate, code and design. We built it to be beautiful, elegant, simple to use and fun - without forsaking flexibility and power. We named it Taiga after the forest biome, because like its namesake, our tool is at the center of an ecosystem - your team, your projects. A great project management tool also helps you see the forest for the trees. We couldn't think of a more appropriate name for what we've done. We built it to be beautiful, elegant, simple to use and fun - without forsaking flexibility and power.
We hope you enjoy it.
-- --
The Taiga development team. The taiga Team
Copyright © 2014 Taiga Agile, LLC, All rights reserved.
Contact us:
Support: mailto:support@taiga.io
Our mailing list is: https://groups.google.com/forum/#!forum/taigaio
You may remove your account from this service: {{ resolve_front_url('cancel-account', cancel_token) }}

View File

@ -89,10 +89,6 @@ def test_response_200_in_public_registration(client, settings):
assert response.data["full_name"] == "martin seamus mcfly" assert response.data["full_name"] == "martin seamus mcfly"
assert len(mail.outbox) == 1 assert len(mail.outbox) == 1
assert mail.outbox[0].subject == "You've been Taigatized!" assert mail.outbox[0].subject == "You've been Taigatized!"
user = models.User.objects.get(username="mmcfly")
cancel_token = get_token_for_user(user, "cancel_account")
cancel_url = resolve_front_url("cancel-account", cancel_token)
assert mail.outbox[0].body.index(cancel_url) > 0
def test_response_200_in_registration_with_github_account(client, settings): def test_response_200_in_registration_with_github_account(client, settings):
settings.PUBLIC_REGISTER_ENABLED = False settings.PUBLIC_REGISTER_ENABLED = False