Fixed mdrender tests

remotes/origin/enhancement/email-actions
Jesús Espino 2014-08-27 10:36:36 +02:00
parent c778f476be
commit 1c72ddb01e
1 changed files with 3 additions and 3 deletions

View File

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