-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#8446] update inline username mentions (missed in original work on t…
…his ticket)
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -919,13 +919,13 @@ def test_markdown_user_mention_default(self): | |
ThreadLocalODMSession.flush_all() | ||
output = g.markdown.convert('Hello.. @admin1, how are you?') | ||
assert 'class="user-mention"' in output | ||
assert ('href="%s"' % u1.url()) in output | ||
assert 'href="/u/admin1/profile/"' in output | ||
u2 = M.User.register(dict(username='admin-2'), make_project=True) | ||
ThreadLocalODMSession.flush_all() | ||
output = g.markdown.convert('Do you know @ab? @admin-2 has solved it!') | ||
assert 'Do you know @ab?' in output | ||
assert 'class="user-mention"' in output | ||
assert ('href="%s"' % u2.url()) in output | ||
assert 'href="/u/admin-2/profile/"' in output | ||
output = g.markdown.convert('[email protected] Hey!') | ||
assert '[email protected] Hey!' in output | ||
|
||
|