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):
self.component = components.webinar.WebinarComponentV2(
base_uri="http://foo.com",
config={
"api_key": "KEY",
"api_secret": "SECRET",
"version": util.API_VERSION_1,
},
def setUp(self):
self.component = components.webinar.WebinarComponent(
base_uri="http://foo.com",
config={
"api_key": "KEY",
"api_secret": "SECRET",
"version": util.API_VERSION_1,
},
def setUp(self):
self.component = components.report.ReportComponentV2(
base_uri="http://foo.com",
config={
"api_key": "KEY",
"api_secret": "SECRET",
"version": util.API_VERSION_2,
},
def setUp(self):
self.component = components.meeting.MeetingComponentV2(
base_uri="http://foo.com",
config={
"api_key": "KEY",
"api_secret": "SECRET",
"version": util.API_VERSION_2,
},
def setUp(self):
self.component = components.report.ReportComponent(
base_uri="http://foo.com",
config={
"api_key": "KEY",
"api_secret": "SECRET",
"version": util.API_VERSION_1,
},
def setUp(self):
self.component = components.webinar.WebinarComponent(
base_uri="http://foo.com",
config={
"api_key": "KEY",
"api_secret": "SECRET",
"version": util.API_VERSION_1,
},
def setUp(self):
self.component = components.user.UserComponent(
base_uri="http://foo.com",
config={
"api_key": "KEY",
"api_secret": "SECRET",
"version": util.API_VERSION_1,
},
def setUp(self):
self.component = components.meeting.MeetingComponent(
base_uri="http://foo.com",
config={
"api_key": "KEY",
"api_secret": "SECRET",
"version": util.API_VERSION_1,
},
def test_can_post_request(self):
responses.add(responses.POST, "http://www.foo.com/endpoint")
client = util.ApiClient(
base_uri="http://www.foo.com", config={"version": util.API_VERSION_1}
)
client.post_request("endpoint")
def test_can_get_request(self):
responses.add(responses.GET, "http://www.foo.com/endpoint")
client = util.ApiClient(
base_uri="http://www.foo.com", config={"version": util.API_VERSION_1}
)
client.get_request("endpoint")