markdown-textwrap

text wrap markdown documents
git clone git://git.ricketyspace.net/markdown-textwrap.git
Log | Files | Refs

commit eda0a3959784927cebfe3baf3b5b410d6e452462
parent 530db56a1e6a7dc2c8b35fcb90181a6393bfa992
Author: rsiddharth <s@ricketyspace.net>
Date:   Sat, 24 Feb 2018 21:17:58 +0000

tests: Add TestTWRenderer.setup_class.

* tests/test_md_tw.py (TestTWRenderer)[setup_class]: New method.
[setup]: Update method.

Diffstat:
tests/test_md_tw.py | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/tests/test_md_tw.py b/tests/test_md_tw.py @@ -694,12 +694,14 @@ class TestTWInlineLexer(object): class TestTWRenderer(object): - def setup(self): - self.md_wrap = TWMarkdown() - + @classmethod + def setup_class(self): # temp stuff self.tmp_dir = tempfile.mkdtemp(suffix='md-tw-renderer-tests') - self.del_tmp_dir = True + self.del_tmp_dir = False + + def setup(self): + self.md_wrap = TWMarkdown() def _write_tmp(self, file_, txt): with open(os.path.join(self.tmp_dir, file_), 'w') as f: