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

Method test_deleting_files

py/tests/test_python_server_async.py:74–82  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

72 assert len(txt) > 0
73
74 async def test_deleting_files(self):
75 base_url = os.getenv('H2O_WAVE_BASE_URL', '/')
76 upload_path, = await self.site.upload([os.path.join('tests', 'test_folder', 'dir1', 'test.txt')])
77 assert base_url in upload_path
78 res = httpx.get(f'http://localhost:10101{upload_path}')
79 assert res.status_code == 200
80 await self.site.unload(upload_path)
81 res = httpx.get(f'http://localhost:10101{upload_path}')
82 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