Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_delete_dataset(self):
response = deleteJson('https://{}/resource/dataset/{}/'.format(SITE_HOST, p.dataset))
assert(response.status_code == 204)
def test_delete_channel(self):
response = deleteJson('https://{}/resource/dataset/{}/project/{}/channel/{}/'.format(SITE_HOST, p.dataset, p.project, p.channels[0]))
assert(response.status_code == 204)
def test_delete_project(self):
response = deleteJson('https://{}/resource/dataset/{}/project/{}/'.format(SITE_HOST, p.dataset, p.project))
assert(response.status_code == 204)
def test_delete_token(self):
response = deleteJson('https://{}/resource/dataset/{}/project/{}/token/{}/'.format(SITE_HOST, p.dataset, p.project, p.token))
assert(response.status_code == 204)