This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
md-pdf/tests/__init__.py

21 lines
470 B
Python
Raw Normal View History

2017-05-27 16:37:10 +01:00
from unittest import TestCase
2017-05-27 16:43:23 +01:00
import os
from md_pdf.consts import TEMPLATES_DIR
2017-05-27 16:37:10 +01:00
class BaseTestCase(TestCase):
2017-05-27 16:43:23 +01:00
def deleteTemplates(self):
for template in [
'header.html',
'footer.html',
'cover.html',
'toc-xml',
]:
try:
os.remove(os.path.join(TEMPLATES_DIR, template))
except OSError:
pass
def tearDown(self):
self.deleteTemplates()