Skip to content

Commit

Permalink
fixes #65
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Mar 25, 2023
1 parent b51bc2e commit 6a140db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ceurws/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.2"
__version__ = "0.2.3"
1 change: 1 addition & 0 deletions ceurws/papertocparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def __init__(self,number:str,soup:BeautifulSoup,debug:bool=False):
self.scrapeDescr = [
ScrapeDescription(key='title', tag='span', attribute='class', value='CEURTITLE'),
ScrapeDescription(key='authors', tag='span', attribute='class', value='CEURAUTHOR', multi=True),
ScrapeDescription(key='pages',tag='span',attribute='class',value="CEURPAGES")
#ScrapeDescription(key='submitted_papers', tag='span', attribute='class', value='CEURSUBMITTEDPAPERS'),
#ScrapeDescription(key='accepted_papers', tag='span', attribute='class', value='CEURACCEPTEDPAPERS'),
]
Expand Down
5 changes: 3 additions & 2 deletions tests/test_papertocparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,16 @@ def test_volExamples(self):
"""
tests parsing of volume examples
"""
vol_examples = [(2376,35),(2379,8),(1,15),(83,12),(3264,10),(3343,7)]
vol_examples = [(3343,7),(2376,35),(2379,8),(1,15),(83,12),(3264,10)]
counter=Counter()
debug=self.debug
debug=True
#debug=True
for vol_number,expected_papers in vol_examples:
paper_records=self.check_paper_toc_parser(vol_number, counter, debug)
self.assertEqual(expected_papers,len(paper_records),vol_number)
if debug:
print(counter.most_common())
self.assertTrue(counter["pages"]>=60)

@unittest.skipIf(True, "Only for manual testing or if github cache is implemented")
def test_parse_all_papertocs(self):
Expand Down

0 comments on commit 6a140db

Please sign in to comment.