aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_unfurl.py
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup tests and make them compatible with python 3Trygve Aaberge2019-04-081-4/+2
| | | | | | 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-0/+2
|
* Add @user-groups support (#680)Nana Amfo2019-04-081-0/+4
| | | Add @user-groups with tab-completion. @user-groups will be unfurl into format <!subteam^{ID}|handle> message before sending message via linktext method.
* test: Add tests for unfurl_auto_link_displayTrygve Aaberge2017-10-011-1/+24
|
* test: Add a unfurl test case for messages containing >Trygve Aaberge2017-09-171-0/+4
| | | | | | This tests the bug that was fixed in commit c667bf6, where a message that first has an url and then a > character would try to unfurl everything up to the last >.
* test: Fix and enable the tests for unfurl_refsTrygve Aaberge2017-09-171-19/+13
|
* massssssssive merge of the new codebaseRyan Huber2017-04-121-9/+16
|
* Leverage pytest.parametrize for test_unfurlMatt Robenolt2016-11-071-26/+27
| | | | | This provides nicer granular test cases rather than one whole test that fails.
* Test string with multiple unfurlcalve2016-01-041-0/+3
|
* unicode fixes, change variable names, better testsRyan Huber2015-11-161-2/+2
|
* Handle unfurling of things with no alt text correctly as wellTollef Fog Heen2015-08-291-0/+3
|
* Whitespace fixupsTollef Fog Heen2015-08-291-2/+0
|
* Refactor unfurl_refsTollef Fog Heen2015-08-291-0/+3
| | | | | Instead of blindly splitting on spaces, use something approximating a parser for parsing refs. Also add another test case.
* Add unit test for unfurl_refs and correct logicTollef Fog Heen2015-08-291-0/+38
The logic for showing/ignoring alt refs was wrong. Fix that, and to prevent this from showing up again, add a unit test.