diff options
author | Pásztor János <janos.pasztor@balabit.com> | 2018-11-05 11:17:23 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2018-11-12 00:03:12 +0100 |
commit | 6670b9e678d01896aa3c419160f3b64df6745e69 (patch) | |
tree | 0467ef00ccb5826ea1af5bb7758b17f166c3f5a5 /_pytest | |
parent | 2732655549f77348200158a585f12ce9494f59c5 (diff) | |
download | wee-slack-6670b9e678d01896aa3c419160f3b64df6745e69.tar.gz |
Add apostrophe to the regex with a corresponding test
* fixes #618
Diffstat (limited to '_pytest')
-rw-r--r-- | _pytest/test_linkifytext.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/_pytest/test_linkifytext.py b/_pytest/test_linkifytext.py index f321d81..c8489be 100644 --- a/_pytest/test_linkifytext.py +++ b/_pytest/test_linkifytext.py @@ -50,3 +50,11 @@ def test_linkifytext_with_many_paranthesis(realish_eventrouter): text = linkify_text('@k(o(v)a)())s: my(( test) message', team, channel) assert text == '@k(o(v)a)())s: my(( test) message' + +def test_linkifytext_names_with_apostrophe(realish_eventrouter): + team = realish_eventrouter.teams.values()[0] + channel = team.channels.values()[0] + + text = linkify_text('@O\'Connor: my test message', team, channel) + + assert text == '@O\'Connor: my test message' |