Skip to content
Snippets Groups Projects
Commit 1990d762 authored by Dmitry Shelepnev's avatar Dmitry Shelepnev
Browse files

Add test for both FB2sax and FB2xpath parsers

parent fcb1ea49
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,14 @@ class scanTestCase(TestCase): ...@@ -51,6 +51,14 @@ class scanTestCase(TestCase):
self.assertEqual(book.genres.get(genre="antique").section, opdsdb.unknown_genre) self.assertEqual(book.genres.get(genre="antique").section, opdsdb.unknown_genre)
self.assertEqual(book.genres.get(genre="antique").subsection, "antique") self.assertEqual(book.genres.get(genre="antique").subsection, "antique")
def test_processfile_fb2sax(self):
config.SOPDS_FB2SAX = True
self.test_processfile_fb2()
def test_processfile_fb2xpath(self):
config.SOPDS_FB2SAX = False
self.test_processfile_fb2()
def test_processfile_epub(self): def test_processfile_epub(self):
""" Тестирование процедуры processfile (извлекает метаданные из книги EPUB и помещает в БД) """ """ Тестирование процедуры processfile (извлекает метаданные из книги EPUB и помещает в БД) """
opdsdb.clear_all() opdsdb.clear_all()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment