]> git.phdru.name Git - m_librarian.git/blobdiff - tests/__init__.py
Convert tests from unittest to pytest
[m_librarian.git] / tests / __init__.py
diff --git a/tests/__init__.py b/tests/__init__.py
deleted file mode 100644 (file)
index 598d463..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-
-import os
-import unittest
-from m_librarian.db import open_db, init_db
-from m_librarian.inp import import_inpx
-
-__all__ = ['TestCase', 'main']
-
-
-class TestCase(unittest.TestCase):
-    def setUp(self):
-        try:
-            os.remove('/tmp/m_librarian-test.sqlite')
-        except OSError:
-            pass
-        open_db('sqlite:///tmp/m_librarian-test.sqlite')
-        init_db()
-
-    def tearDown(self):
-        try:
-            os.remove('/tmp/m_librarian-test.sqlite')
-        except OSError:
-            pass
-
-    def import_inpx(self, inpx):
-        import_inpx(os.path.join(os.path.dirname(__file__), inpx))