(self)
| 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 |