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=" )
def test_get_data_invalid_url(self): with pytest.raises(ValueError): Contributor.get_partner_data('30709653543', url="invalidUrl")
def test_get_partner_data(self): Contributor.get_partner_data('30709653543')