Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setUp(self):
ActiveResource.site = None
ActiveResource.headers=None
shopify.ShopifyResource.clear_session()
shopify.ShopifyResource.site = "https://this-is-my-test-show.myshopify.com/admin"
shopify.ShopifyResource.password = None
shopify.ShopifyResource.user = None
http_fake.initialize()
self.http = http_fake.TestHandler
self.http.set_response(Exception('Bad request'))
self.http.site = 'https://this-is-my-test-show.myshopify.com'