MCPcopy
hub / github.com/h2oai/wave / test_deleting_files

Method test_deleting_files

py/tests/test_python_server.py:476–482  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

474 assert len(txt) > 0
475
476 def test_deleting_files(self):
477 upload_path, = site.upload([os.path.join('tests', 'test_folder', 'dir1', 'test.txt')])
478 res = httpx.get(f'http://localhost:10101{upload_path}')
479 assert res.status_code == 200
480 site.unload(upload_path)
481 res = httpx.get(f'http://localhost:10101{upload_path}')
482 assert res.status_code == 404

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
uploadMethod · 0.45
unloadMethod · 0.45

Tested by

no test coverage detected