summaryrefslogtreecommitdiff
path: root/tests/test_pymdvar.py
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-02-16 02:22:51 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-02-16 02:22:51 -0600
commitb0d48558606fabfb582358077c3c909c2bbb63e1 (patch)
tree0dd78336fa375fff4f76629b70ece2aee5b38d93 /tests/test_pymdvar.py
parent30ccf03fa849b5c6b550ab85aabce860a16b16cf (diff)
add type hints
Diffstat (limited to 'tests/test_pymdvar.py')
-rw-r--r--tests/test_pymdvar.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/test_pymdvar.py b/tests/test_pymdvar.py
index 69ffe56..91a97d0 100644
--- a/tests/test_pymdvar.py
+++ b/tests/test_pymdvar.py
@@ -4,10 +4,8 @@ from pymdvar import VariableExtension
def test_empty_input():
- in_str = ''
- out_str = markdown(in_str, extensions=[VariableExtension()])
- print(in_str)
- print(out_str)
+ in_str: str = ''
+ out_str: str = markdown(in_str, extensions=[VariableExtension()])
assert in_str == out_str
@@ -20,7 +18,7 @@ def test_empty_input():
('foo **$test}** bar', '<p>foo <strong>$test}</strong> bar</p>'),
])
def test_non_replacements(in_str, exp_str):
- out_str = markdown(in_str, extensions=[VariableExtension()])
+ out_str: str = markdown(in_str, extensions=[VariableExtension()])
assert out_str == exp_str
@@ -32,6 +30,6 @@ def test_non_replacements(in_str, exp_str):
('foo ![image](${test}/a.jpg) bar', '<p>foo <img alt="image" src="value/a.jpg" /> bar</p>'),
])
def test_simple_replacements(in_str, exp_str):
- out_str = markdown(in_str, extensions=[VariableExtension(variables={'test':'value'})])
+ out_str: str = markdown(in_str, extensions=[VariableExtension(variables={'test':'value'})])
assert out_str == exp_str