Keep dropout fixture out of importer tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWXcjiPpgRfxzrRfoky
This commit is contained in:
Krzysztof Rudnicki 2026-11-10 19:39:51 +01:00
parent 13f1e9ed93
commit 94a55deb86

View File

@ -13,10 +13,16 @@ import 'package:workout_app/services/tcx_codec.dart';
const String kFixtureDir = '../../screen_locker/tests/fixtures/run_tcx';
/// The GPS-dropout export: shares the folder for the golden twin, but is not
/// one of the three exports these importer and backup tests count on.
const String kDropoutFixture = 'RunnerUp_2026-11-09-18-00-00_Running.tcx';
/// The three golden exports, by file name.
Map<String, Uint8List> fixtureTcx() => {
for (final f in Directory(kFixtureDir).listSync().whereType<File>())
if (f.path.endsWith('.tcx')) f.uri.pathSegments.last: f.readAsBytesSync(),
if (f.path.endsWith('.tcx') &&
f.uri.pathSegments.last != kDropoutFixture)
f.uri.pathSegments.last: f.readAsBytesSync(),
};
final DufsCredentials kLogin = DufsCredentials(