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_formatting.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_formatting.py')
-rw-r--r-- | _pytest/test_formatting.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_pytest/test_formatting.py b/_pytest/test_formatting.py index 2f03c6a..74dffba 100644 --- a/_pytest/test_formatting.py +++ b/_pytest/test_formatting.py @@ -12,7 +12,7 @@ import wee_slack """, "* Run this command: `find . -name '*.exe'`", ]) -def test_does_not_format(text): +def test_does_not_format(realish_eventrouter, text): assert wee_slack.render_formatting(text) == text @@ -25,5 +25,5 @@ def test_does_not_format(text): "`* * * * *`", "`* * * * * *`", ]) -def test_preserves_format_chars_in_code(text): +def test_preserves_format_chars_in_code(realish_eventrouter, text): assert wee_slack.render_formatting(text) == text |