Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Simple OPDS
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Simple OPDS
Commits
1990d762
Commit
1990d762
authored
Feb 28, 2017
by
Dmitry Shelepnev
Browse files
Options
Downloads
Patches
Plain Diff
Add test for both FB2sax and FB2xpath parsers
parent
fcb1ea49
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
opds_catalog/tests/test_scan.py
+8
-0
8 additions, 0 deletions
opds_catalog/tests/test_scan.py
with
8 additions
and
0 deletions
opds_catalog/tests/test_scan.py
+
8
−
0
View file @
1990d762
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment