Skip to content

Commit

Permalink
fix: Remove date from IANA BibXML reference (ietf-tools#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara authored Jul 23, 2024
1 parent 325ec2e commit a0b9f3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions bibxml/xml2rfc_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ def resolve(self) -> BibliographicItem:
if parsed_link.scheme == "http":
link[index].content = \
parsed_link._replace(scheme="https").geturl()
resolved_item.date = []
return resolved_item
else:
self.log("no refs found")
Expand Down
5 changes: 5 additions & 0 deletions xml2rfc_compat/tests/test_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,8 @@ def test_iana_should_replace_target_scheme(self):
for link in as_list(bibitem.link or [])
)
)

def test_iana_has_no_date(self):
adapter = IanaAdapter(self.dirname, "bibxml-iana", self.iana_ref)
bibitem = adapter.resolve()
self.assertEqual(bibitem.date, [])

0 comments on commit a0b9f3c

Please sign in to comment.