diff --git a/pub/tools/config.py b/pub/tools/config.py index b5ea7d6..a0945a2 100644 --- a/pub/tools/config.py +++ b/pub/tools/config.py @@ -3,7 +3,7 @@ NO_VALUE = "<>" # special marker MAX_PUBS = 9000 # Biopython will put a count greater than 200 ids into a post, so we don't need to worry about request size -# But there does seem to be a 9999 limit either from Biopython or from NCBI. +# But there does seem to be a 9999 limit either from Biopython or from NCBI VERSION = importlib.metadata.version('pub.tools') diff --git a/pub/tools/tests/test_entrez.py b/pub/tools/tests/test_entrez.py index 17b8c88..2589610 100644 --- a/pub/tools/tests/test_entrez.py +++ b/pub/tools/tests/test_entrez.py @@ -357,14 +357,16 @@ def test_print_electronic_pubmodel(self): """ Both dates should be stored and the citation reflect it """ record = entrez.get_publication(pmid='10854512') self.assertEqual(citations.journal_citation(html=True, publication=record), - 'Soon MS, Lin OS. Inflammatory fibroid polyp of the duodenum. Surg Endosc 2000 ' + 'Soon MS, Lin OS. Inflammatory fibroid polyp of the duodenum. ' + 'Surg Endosc 2000 ' 'Jan;14(1):86. Epub 1999 Nov 25.') def test_electronic_print_pubmodel(self): """ Both dates should be stored but use electronic date for citation """ record = entrez.get_publication(pmid='14729922') self.assertEqual(citations.journal_citation(html=True, publication=record), - 'Edgar RC. Local homology recognition and distance measures in linear time using ' + 'Edgar RC. Local homology recognition and distance measures in ' + 'linear time using ' 'compressed ' 'amino acid alphabets. Nucleic Acids Res 2004 Jan 16;32(1):380-5. Print 2004.') @@ -372,7 +374,8 @@ def test_electronic_ecollection_pubmodel(self): """ Both dates should be stored but use electronic date for citation """ record = entrez.get_publication(pmid='23372575') self.assertEqual(citations.journal_citation(html=True, publication=record), - 'Wangari-Talbot J, Chen S. Genetics of melanoma. Front Genet 2013 ' + 'Wangari-Talbot J, Chen S. Genetics of melanoma. Front ' + 'Genet 2013 ' 'Jan 25;3:330. doi: ' '10.3389/fgene.2012.00330. eCollection 2012.')