MCPcopy Create free account
hub / github.com/MG-RAST/Shock / delete_nodes

Function delete_nodes

test/test_shock.py:61–67  ·  view source on GitHub ↗
(NODELIST)

Source from the content-addressed store, hash-verified

59
60
61def delete_nodes(NODELIST):
62 TESTHEADERS = {"Authorization": "OAuth {}".format(TOKEN)}
63 for NODEID in NODELIST:
64 NODEURL = SHOCK_URL + "/node/{}".format(NODEID)
65 response = requests.delete(NODEURL, headers=TESTHEADERS)
66 assert json.loads(response.content.decode("utf-8"))["status"] == 200
67 return
68
69
70def test_nodelist_noauth():

Callers 6

test_download_tar_GETFunction · 0.85
test_download_tar_POSTFunction · 0.85
test_download_zip_POSTFunction · 0.85
test_post_attributesFunction · 0.85
test_post_gzipFunction · 0.85
test_post_bzipFunction · 0.85

Calls 1

deleteMethod · 0.80

Tested by

no test coverage detected