<NME> test_api_bugs.py
<BEF> ADDFILE
<MSG> Handle missing title attribute: default to "0" (#72)

* Add unit test for paper without title
* Use `logger.warning` over `logger.warn`
* Upgrade pdoc to 7.1.1
* Ignore artifacts from GitHub Actions docs test

<DFF> @@ -0,0 +1,26 @@
+"""
+Tests for work-arounds to known arXiv API bugs.
+"""
+import arxiv
+import unittest
+
+
+class TestClient(unittest.TestCase):
+    def test_missing_title(self):
+        """
+        Papers with the title "0" do not have a title element in the Atom feed.
+
+        It's unclear whether other falsey titles (e.g. "False", "null", or empty
+        titles) are allowed by arXiv and are impacted by this bug. This may also
+        surface for other expected fields (e.g. author names).
+
+        + GitHub issue: https://github.com/lukasschwab/arxiv.py/issues/71
+        + Bug report: https://groups.google.com/u/1/g/arxiv-api/c/ORENISrc5gc
+        """
+        paper_without_title = "2104.12255v1"
+        try:
+            results = list(arxiv.Search(id_list=[paper_without_title]).get())
+            self.assertEqual(len(results), 1)
+            self.assertEqual(results[0].get_short_id(), paper_without_title)
+        except AttributeError:
+            self.fail("got AttributeError fetching paper without title")

Handle missing title attribute: default to "0" (#72)