aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_linkifytext.py
Commit message (Collapse)AuthorAgeFilesLines
* Refactor linkify_text to use re.subTrygve Aaberge2019-08-251-0/+5
| | | | | Instead of splitting the message at spaces and checking and replacing each word, use re.sub for the whole message.
* Support @everyone in linkify_textTrygve Aaberge2019-08-251-0/+5
|
* Add some more tests for linkify_textTrygve Aaberge2019-08-251-0/+27
|
* Include @ in subteam handleTrygve Aaberge2019-08-251-2/+2
| | | | Subteams/usergroups should never be used without the @.
* Cleanup tests and make them compatible with python 3Trygve Aaberge2019-04-081-42/+18
| | | | | | This mainly adds team, channel_general and user_alice as fixtures, so we can use those directly instead of picking arbitrary ones from the lists. It also adds assertions to some tests which where missing it.
* Import print_function and unicode_literals in all test filesTrygve Aaberge2019-04-081-1/+1
|
* Add @user-groups support (#680)Nana Amfo2019-04-081-0/+11
| | | Add @user-groups with tab-completion. @user-groups will be unfurl into format <!subteam^{ID}|handle> message before sending message via linktext method.
* Remove channel parameter from linkify_textTrygve Aaberge2019-04-031-15/+8
| | | | This parameter is not used in the function.
* Keep text directly after @channel/group/here when linkifyingTrygve Aaberge2019-04-021-0/+16
| | | | Previously, when writing e.g. `@channel: test` the colon would be lost.
* Add apostrophe to the regex with a corresponding testPásztor János2018-11-121-0/+8
| | | | * fixes #618
* Match nicks with parenthesis and/or unicode (#649)pasja2018-11-031-0/+37
| | | | | | | | * Fix for #570, also incorporates #545 * Fixes from the review * review fix #2
* test: Make mock_weechat a dependency of realish_eventrouterTrygve Aaberge2017-09-151-1/+1
| | | | | | | | | | Setting up the eventrouter for the tests involves code that requires the config object to be set, so it has to depend on mock_weechat. This didn't cause a problem when all the tests were run since the first test depends on mock_weechat so it would be set up. However, if you tried to run a single test that depended on realish_eventrouter, but not mock_weechat, it would fail.
* Fix HTML entity-encoding of outgoing messagesTrygve Aaberge2017-08-011-0/+9
| | | | | | We have to replace the & before we replace < and >, otherwise the & in &lt; and &gt; are going to be replaced. Additionally, we need to end the sequences with ; which was missing.
* massssssssive merge of the new codebaseRyan Huber2017-04-121-0/+6