Fix broken tests

This commit is contained in:
Veronica K. B. Olsen
2021-01-29 01:14:58 +01:00
parent 4c27d2600a
commit 8de0c55b68
4 changed files with 71 additions and 9 deletions
+4 -4
View File
@@ -42,21 +42,21 @@ logger = logging.getLogger(__name__)
# Translation map for item layouts
NOVEL_MAP = {
nwItemLayout.SCENE: {
"H1": nwItemLayout.PARTITION,
"H1": nwItemLayout.BOOK,
"H2": nwItemLayout.CHAPTER,
"H4": nwItemLayout.SCENE,
},
nwItemLayout.CHAPTER: {
"H1": nwItemLayout.PARTITION,
"H1": nwItemLayout.BOOK,
"H3": nwItemLayout.SCENE,
"H4": nwItemLayout.SCENE,
},
nwItemLayout.UNNUMBERED: {
"H1": nwItemLayout.PARTITION,
"H1": nwItemLayout.BOOK,
"H3": nwItemLayout.SCENE,
"H4": nwItemLayout.SCENE,
},
nwItemLayout.PARTITION: {
nwItemLayout.BOOK: {
"H2": nwItemLayout.CHAPTER,
"H3": nwItemLayout.SCENE,
"H4": nwItemLayout.SCENE,