directory cleanup for tests
Sonarqube Scanner / Prepare environment (push) Successful in 11s
Sonarqube Scanner / Build and test (push) Successful in 29s
Sonarqube Scanner / SonarQube analysis (push) Successful in 1m25s
Sonarqube Scanner / Deploy to Server (push) Successful in 7s

This commit is contained in:
Florian Zumpe
2026-10-04 08:12:08 +02:00
parent 4e7b519275
commit 497b7b8050
6 changed files with 120 additions and 48 deletions
+4 -2
View File
@@ -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,