Commit bb9d1620 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update RecordHepConf to fix a typo in conference_dates

parent 8b502fef
...@@ -91,7 +91,7 @@ class RecordHepConf(RecordHepPubli): ...@@ -91,7 +91,7 @@ class RecordHepConf(RecordHepPubli):
ds = datetime.strptime(opening, "%Y-%m-%d") ds = datetime.strptime(opening, "%Y-%m-%d")
de = datetime.strptime(closing, "%Y-%m-%d") de = datetime.strptime(closing, "%Y-%m-%d")
val = de.strftime("%d %B %Y") val = de.strftime("%d %b %Y")
if ds.month == de.month: if ds.month == de.month:
val = f"{ds.day}-{val}" val = f"{ds.day}-{val}"
else: else:
......
...@@ -43,7 +43,7 @@ def test_conference_country_ins_07004(record): ...@@ -43,7 +43,7 @@ def test_conference_country_ins_07004(record):
def test_conference_dates_ins_07006(record): def test_conference_dates_ins_07006(record):
assert record.conference_dates() == "6-11 December 2010" assert record.conference_dates() == "6-11 Dec 2010"
def test_conference_id_ins_07008(record): def test_conference_id_ins_07008(record):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment