Skip to content

Commit

Permalink
fixes tests and sets's debug to False for location test
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Dec 28, 2023
1 parent 3ed4095 commit cb01889
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion tests/test_loctime.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class TestLoctimeParser(Basetest):
Test parsing loctime entries pages
"""

def setUp(self, debug=True, profile=True):
def setUp(self, debug=False, profile=True):
"""
setUp the test case
"""
Expand Down
30 changes: 16 additions & 14 deletions tests/test_volumeparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,23 +275,25 @@ def test_vol3264(self):
vol_number = 3264
record, _soup = self.volumeParser.parse_volume(vol_number)
debug = self.debug
# debug=True
#debug=True
if debug:
print(json.dumps(record, indent=2))
expected = {
"volume_number": "Vol-3264",
"urn": "urn:nbn:de:0074-3264-7",
"year": "2022",
"ceurpubdate": "2022-11-05",
"acronym": "HEDA 2022",
"voltitle": "The International Health Data Workshop HEDA 2022",
"title": "Proceedings of The International Health Data Workshop",
"loctime": "Bergen, Norway, June 26th-27th, 2022",
"colocated": "Petri Nets 2022",
"h1": "HEDA 2022 The International Health Data Workshop HEDA 2022",
"homepage": "",
"h3": "Proceedings of The International Health Data Workshop co-located with 10th International Conference on Petrinets (Petri Nets 2022)",
}
"volume_number": "Vol-3264",
"urn": "urn:nbn:de:0074-3264-7",
"year": "2022",
"ceurpubdate": "2022-11-05",
"acronym": "HEDA 2022",
"voltitle": "The International Health Data Workshop HEDA 2022",
"title": "Proceedings of The International Health Data Workshop",
"loctime": "Bergen, Norway, June 26th-27th, 2022",
"colocated": "Petri Nets 2022",
"h1": "HEDA 2022 The International Health Data Workshop HEDA 2022",
"homepage": "",
"h3": "Proceedings of The International Health Data Workshop co-located with 10th International Conference on Petrinets (Petri Nets 2022)",
"urn_check_digit": 7,
"urn_ok": True
}
self.assertEqual(expected, record)

def test_volume_caching(self):
Expand Down

0 comments on commit cb01889

Please sign in to comment.