@@ -548,7 +548,6 @@ def setUpClass(cls):
548548
549549 scholarly .use_proxy (proxy_generator , secondary_proxy_generator )
550550
551- @unittest .skipIf (os .getenv ("CONNECTION_METHOD" ) in {None , "none" , "freeproxy" }, reason = "No robust proxy setup" )
552551 def test_search_keyword_empty_keyword (self ):
553552 """
554553 As of 2020-04-30, there are 6 individuals that match the name 'label'
@@ -559,15 +558,13 @@ def test_search_keyword_empty_keyword(self):
559558 authors = [a for a in scholarly .search_keyword ('' )]
560559 self .assertGreaterEqual (len (authors ), 6 )
561560
562- @unittest .skipIf (os .getenv ("CONNECTION_METHOD" ) in {None , "none" , "freeproxy" }, reason = "No robust proxy setup" )
563561 def test_search_pubs_empty_publication (self ):
564562 """
565563 Test that searching for an empty publication returns zero results
566564 """
567565 pubs = [p for p in scholarly .search_pubs ('' )]
568566 self .assertIs (len (pubs ), 0 )
569567
570- @unittest .skipIf (os .getenv ("CONNECTION_METHOD" ) in {None , "none" , "freeproxy" }, reason = "No robust proxy setup" )
571568 def test_search_pubs_citedby (self ):
572569 """
573570 Testing that when we retrieve the list of publications that cite
@@ -584,7 +581,6 @@ def test_search_pubs_citedby(self):
584581 cites = [c for c in scholarly .citedby (filled )]
585582 self .assertEqual (len (cites ), filled ['num_citations' ])
586583
587- @unittest .skipIf (os .getenv ("CONNECTION_METHOD" ) in {None , "none" , "freeproxy" }, reason = "No robust proxy setup" )
588584 def test_search_pubs_citedby_id (self ):
589585 """
590586 Test querying for citations by paper ID.
@@ -626,7 +622,6 @@ def test_bibtex(self):
626622 result = scholarly .bibtex (pub )
627623 self .assertEqual (result , expected_result .replace ("\n " , "\n " ))
628624
629- @unittest .skipIf (os .getenv ("CONNECTION_METHOD" ) in {None , "none" , "freeproxy" }, reason = "No robust proxy setup" )
630625 def test_search_keyword (self ):
631626 """
632627 Test that we can search based on specific keywords
@@ -661,7 +656,6 @@ def test_search_keyword(self):
661656 self .assertEqual (author [key ], expected_author [key ])
662657 self .assertEqual (set (author ["interests" ]), set (expected_author ["interests" ]))
663658
664- @unittest .skipIf (os .getenv ("CONNECTION_METHOD" ) in {None , "none" , "freeproxy" }, reason = "No robust proxy setup" )
665659 def test_search_pubs (self ):
666660 """
667661 As of May 12, 2020 there are at least 29 pubs that fit the search term:
@@ -682,7 +676,6 @@ def test_search_pubs(self):
682676 titles = [p ['bib' ]['title' ] for p in pubs ]
683677 self .assertIn ('Visual perception of the physical stability of asymmetric three-dimensional objects' , titles )
684678
685- @unittest .skipIf (os .getenv ("CONNECTION_METHOD" ) in {None , "none" , "freeproxy" }, reason = "No robust proxy setup" )
686679 def test_search_pubs_total_results (self ):
687680 """
688681 As of September 16, 2021 there are 32 pubs that fit the search term:
@@ -700,7 +693,6 @@ def test_search_pubs_total_results(self):
700693 pubs = scholarly .search_pubs ('sdfsdf+24r+asdfasdf' )
701694 self .assertEqual (pubs .total_results , 0 )
702695
703- @unittest .skipIf (os .getenv ("CONNECTION_METHOD" ) in {None , "none" , "freeproxy" }, reason = "No robust proxy setup" )
704696 def test_search_pubs_filling_publication_contents (self ):
705697 '''
706698 This process checks the process of filling a publication that is derived
@@ -722,7 +714,6 @@ def test_search_pubs_filling_publication_contents(self):
722714 self .assertTrue (f ['bib' ]['volume' ] == '18' )
723715 self .assertTrue (f ['bib' ]['pub_year' ] == u'2018' )
724716
725- @unittest .skipIf (os .getenv ("CONNECTION_METHOD" ) in {None , "none" , "freeproxy" }, reason = "No robust proxy setup" )
726717 def test_related_articles_from_author (self ):
727718 """
728719 Test that we obtain related articles to an article from an author
@@ -746,7 +737,6 @@ def test_related_articles_from_author(self):
746737 self .assertGreaterEqual (related_article ['num_citations' ], 18673 )
747738 self .assertIn ("A Tversky" , related_article ['bib' ]['author' ])
748739
749- @unittest .skipIf (os .getenv ("CONNECTION_METHOD" ) in {None , "none" , "freeproxy" }, reason = "No robust proxy setup" )
750740 def test_related_articles_from_publication (self ):
751741 """
752742 Test that we obtain related articles to an article from a search
@@ -769,7 +759,6 @@ def test_related_articles_from_publication(self):
769759 self .assertGreaterEqual (related_article ['num_citations' ], 1388 )
770760 self .assertIn ("AG Riess" , related_article ['bib' ]['author' ])
771761
772- @unittest .skipIf (os .getenv ("CONNECTION_METHOD" ) in {None , "none" , "freeproxy" }, reason = "No robust proxy setup" )
773762 def test_pubs_custom_url (self ):
774763 """
775764 Test that we can use custom URLs for retrieving publication data
0 commit comments