]> git.phdru.name Git - m_librarian.git/blobdiff - tests/test_glst.py
Docs: Recode README.rus.txt to utf-8
[m_librarian.git] / tests / test_glst.py
index bf4bd0cf92dcc2438a2ec3f7c3938e1aa25cafec..8211cc1e7dcad602e8fd6ba231b01b34fb13fd2f 100644 (file)
@@ -1,10 +1,9 @@
 
-from tests import TestCase
+from dbutils import setup_module, teardown_module  # noqa
 from m_librarian.db import Genre
 from m_librarian.glst import import_glst
 
 
-class TestGlst(TestCase):
-    def test_import_glst(self):
-        import_glst()
-        self.assertEqual(Genre.select().count(), 340)
+def test_import_glst():
+    import_glst()
+    assert Genre.select().count() == 340