Fix some tests

remotes/origin/enhancement/email-actions
David Barragán Merino 2014-11-25 18:43:31 +01:00
parent 105a0c650e
commit fa1e0c6bf6
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ dummy_project.slug = "test"
def test_proccessor_valid_user_mention():
factories.UserFactory(username="user1", full_name="test name")
result = render(dummy_project, "**@user1**")
expected_result = "<p><strong><a alt=\"test name\" class=\"mention\" href=\"/profile/user1\" title=\"test name\">@user1</a></strong></p>"
expected_result = "<p><strong><a class=\"mention\" href=\"/profile/user1\" title=\"test name\">@user1</a></strong></p>"
assert result == expected_result

View File

@ -43,7 +43,7 @@ def test_proccessor_valid_us_reference():
instance.content_type.model = "userstory"
instance.content_object.subject = "test"
result = render(dummy_project, "**#1**")
expected_result = '<p><strong><a alt="test" class="reference user-story" href="http://localhost:9001/project/test/us/1" title="test">#1</a></strong></p>'
expected_result = '<p><strong><a class="reference user-story" href="http://localhost:9001/project/test/us/1" title="test">#1</a></strong></p>'
assert result == expected_result
@ -53,7 +53,7 @@ def test_proccessor_valid_issue_reference():
instance.content_type.model = "issue"
instance.content_object.subject = "test"
result = render(dummy_project, "**#2**")
expected_result = '<p><strong><a alt="test" class="reference issue" href="http://localhost:9001/project/test/issue/2" title="test">#2</a></strong></p>'
expected_result = '<p><strong><a class="reference issue" href="http://localhost:9001/project/test/issue/2" title="test">#2</a></strong></p>'
assert result == expected_result
@ -63,7 +63,7 @@ def test_proccessor_valid_task_reference():
instance.content_type.model = "task"
instance.content_object.subject = "test"
result = render(dummy_project, "**#3**")
expected_result = '<p><strong><a alt="test" class="reference task" href="http://localhost:9001/project/test/task/3" title="test">#3</a></strong></p>'
expected_result = '<p><strong><a class="reference task" href="http://localhost:9001/project/test/task/3" title="test">#3</a></strong></p>'
assert result == expected_result