summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-02-24 21:17:58 +0000
committerrsiddharth <s@ricketyspace.net>2018-02-24 21:21:09 +0000
commiteda0a3959784927cebfe3baf3b5b410d6e452462 (patch)
treef4c2df5a92c98e3c442c7054cf49b320f5f4f241
parent530db56a1e6a7dc2c8b35fcb90181a6393bfa992 (diff)
tests: Add TestTWRenderer.setup_class.
* tests/test_md_tw.py (TestTWRenderer)[setup_class]: New method. [setup]: Update method.
-rw-r--r--tests/test_md_tw.py10
1 files 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: