diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2019-04-02 09:58:56 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2019-04-08 15:11:57 +0200 |
commit | b459586d96ec1f765d7aed86538b8d8576977f6c (patch) | |
tree | 63488459b22c11b83589b9cfe562f58b4c701b57 /_pytest/test_unfurl.py | |
parent | 82147d2d2a47927528e993816ee9393a4aa15b83 (diff) | |
download | wee-slack-b459586d96ec1f765d7aed86538b8d8576977f6c.tar.gz |
Cleanup tests and make them compatible with python 3
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.
Diffstat (limited to '_pytest/test_unfurl.py')
-rw-r--r-- | _pytest/test_unfurl.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/_pytest/test_unfurl.py b/_pytest/test_unfurl.py index c73abaa..17fdc79 100644 --- a/_pytest/test_unfurl.py +++ b/_pytest/test_unfurl.py @@ -3,8 +3,6 @@ from __future__ import print_function, unicode_literals import wee_slack import pytest -slack = wee_slack - @pytest.mark.parametrize('case', ( { @@ -70,9 +68,9 @@ slack = wee_slack } )) def test_unfurl_refs(case, realish_eventrouter): - slack.EVENTROUTER = realish_eventrouter + wee_slack.EVENTROUTER = realish_eventrouter - result = slack.unfurl_refs( + result = wee_slack.unfurl_refs( case['input'], ignore_alt_text=case.get('ignore_alt_text', False), auto_link_display=case.get('auto_link_display', 'both'), |