예제 #1
0
 def test_get_data_no_json(self):
     with pytest.raises(ValueError):
         Contributor.get_partner_data(
             '30709653543',
             url=
             "https://www.google.com.ar/?gfe_rd=cr&ei=uWRqWLaUNYyTwASCjLPABQ&gws_rd=ssl#q="
         )
예제 #2
0
 def test_get_data_invalid_url(self):
     with pytest.raises(ValueError):
         Contributor.get_partner_data('30709653543', url="invalidUrl")
예제 #3
0
 def test_get_partner_data(self):
     Contributor.get_partner_data('30709653543')