mirror of https://github.com/zulip/zulip.git
Switch our trac realm filter to use trac.zulip.net
(imported from commit 19163f5be01a1d9370d9ed45c55bedd670772dac)
This commit is contained in:
parent
d95da86299
commit
5c81148839
|
@ -694,7 +694,7 @@ def make_md_engine(key, opts):
|
|||
realm_filters = {
|
||||
"default": [],
|
||||
"zulip.com": [
|
||||
("#(?P<id>[0-9]{2,8})", "https://trac.humbughq.com/ticket/%(id)s"),
|
||||
("#(?P<id>[0-9]{2,8})", "https://trac.zulip.net/ticket/%(id)s"),
|
||||
],
|
||||
"mit.edu/zephyr_mirror": [],
|
||||
}
|
||||
|
|
|
@ -2780,10 +2780,10 @@ But you can never leave**"""
|
|||
self.assertEqual(converted, "<p>You can check out **any time you'd like<br>\nBut you can never leave**</p>")
|
||||
|
||||
def test_realm_patterns(self):
|
||||
msg = "We should fix #224 and #115, but not issue#124 or #1124z or [trac #15](https://trac.humbughq.com/ticket/16) today."
|
||||
msg = "We should fix #224 and #115, but not issue#124 or #1124z or [trac #15](https://trac.zulip.net/ticket/16) today."
|
||||
converted = bugdown_convert(msg)
|
||||
|
||||
self.assertEqual(converted, '<p>We should fix <a href="https://trac.humbughq.com/ticket/224" target="_blank" title="https://trac.humbughq.com/ticket/224">#224</a> and <a href="https://trac.humbughq.com/ticket/115" target="_blank" title="https://trac.humbughq.com/ticket/115">#115</a>, but not issue#124 or #1124z or <a href="https://trac.humbughq.com/ticket/16" target="_blank" title="https://trac.humbughq.com/ticket/16">trac #15</a> today.</p>')
|
||||
self.assertEqual(converted, '<p>We should fix <a href="https://trac.zulip.net/ticket/224" target="_blank" title="https://trac.zulip.net/ticket/224">#224</a> and <a href="https://trac.zulip.net/ticket/115" target="_blank" title="https://trac.zulip.net/ticket/115">#115</a>, but not issue#124 or #1124z or <a href="https://trac.zulip.net/ticket/16" target="_blank" title="https://trac.zulip.net/ticket/16">trac #15</a> today.</p>')
|
||||
|
||||
class UserPresenceTests(AuthedTestCase):
|
||||
|
||||
|
|
Loading…
Reference in New Issue