Skip to content

Commit

Permalink
fixes test_seealso
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Feb 25, 2024
1 parent 2f84588 commit 0b33020
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/test_indexhtml_scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from lodstorage.lod import LOD

from ceurws.ceur_ws import VolumeManager
from ceurws.indexparser import IndexHtmlParser
from ceurws.indexparser import IndexHtmlParser, ParserConfig
from tests.basetest import Basetest


Expand Down Expand Up @@ -117,8 +117,13 @@ def test_setSeeAlsoVolumes(self):
tests extraction of series link over seeAlso
"""
vm = VolumeManager()
htmlText = vm.getIndexHtml(force=False)
indexParser = IndexHtmlParser(htmlText, debug=self.debug)
parser_config=ParserConfig()
debug=self.debug
#debug=True
parser_config.debug=debug
parser_config.verbose=debug
htmlText = vm.getIndexHtml(parser_config)
indexParser = IndexHtmlParser(htmlText,parser_config)
volumes = indexParser.parse()
expected_see_also = { # volume: expected see also list
3333: [3067],
Expand Down

0 comments on commit 0b33020

Please sign in to comment.