blob: 2f03c6adbbeea59bfa22b4f61353ebe30500d479 (
plain) (
tree)
|
|
from __future__ import print_function, unicode_literals
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
@pytest.mark.parametrize("text", [
"`hello *bar*`",
"`*`",
"`* *`",
"`* * *`",
"`* * * *`",
"`* * * * *`",
"`* * * * * *`",
])
def test_preserves_format_chars_in_code(text):
assert wee_slack.render_formatting(text) == text
|