directory cleanup for tests
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { parseGpx } from '../src/services/gpx.js';
|
||||
import { SAMPLE_GPX } from '../test-support/gpx-fixtures.js';
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs/promises';
|
||||
import os from 'node:os';
|
||||
@@ -182,8 +183,9 @@ assert result['ok'] is True
|
||||
[pythonHealthCheck.stdout, pythonHealthCheck.stderr].filter(Boolean).join('\n')
|
||||
);
|
||||
|
||||
const gpxPath = path.join(root, 'examples', 'sample-route.gpx');
|
||||
const gpx = await fs.readFile(gpxPath);
|
||||
const gpxPath = path.join(runtime, 'test-route.gpx');
|
||||
const gpx = Buffer.from(SAMPLE_GPX);
|
||||
await fs.writeFile(gpxPath, gpx);
|
||||
const createRoute = await runProcess('python3', [
|
||||
path.join(root, 'tools/python/create_route.py'),
|
||||
'--base-url', LOCAL_API_URL,
|
||||
|
||||
Reference in New Issue
Block a user