diff options
author | David Vo <auscompgeek@users.noreply.github.com> | 2018-11-19 12:53:37 +1100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2019-01-25 23:45:04 +0100 |
commit | fb5612d641296a022a869bd0a4b9a0aed9255e51 (patch) | |
tree | e64efde38fbacceb52fa236a95e8a9e99b0f0681 | |
parent | 7691c97b9bc1a66b2aa3d037c506c0f090a40ac9 (diff) | |
download | wee-slack-fb5612d641296a022a869bd0a4b9a0aed9255e51.tar.gz |
Add tests for no formatting cases
-rw-r--r-- | _pytest/test_formatting.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/_pytest/test_formatting.py b/_pytest/test_formatting.py new file mode 100644 index 0000000..dc1d732 --- /dev/null +++ b/_pytest/test_formatting.py @@ -0,0 +1,14 @@ +import pytest + +import wee_slack + + +@pytest.mark.parametrize("text", [ + """ + * an item + * another item + """, + "* Run this command: `find . -name '*.exe'`", +]) +def test_does_not_format(text): + assert wee_slack.render_formatting(text) == text |