From eda0a3959784927cebfe3baf3b5b410d6e452462 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 24 Feb 2018 21:17:58 +0000 Subject: tests: Add TestTWRenderer.setup_class. * tests/test_md_tw.py (TestTWRenderer)[setup_class]: New method. [setup]: Update method. --- 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 index a38afcb..c97e50e 100644 --- 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: -- cgit v1.2.3