(tmp_path)
| 43 | |
| 44 | @pytest.fixture |
| 45 | def client(tmp_path): |
| 46 | test_db = tmp_path / 'test.db' |
| 47 | app = server.create_app(test_db.as_posix()) |
| 48 | client = app.test_client() |
| 49 | yield client |
| 50 | flask.g.bukudb.close() |
| 51 | os.remove(test_db) |
| 52 | |
| 53 | |
| 54 | def test_home(client): |