mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-19 13:24:22 +01:00
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:
parent
13f1e9ed93
commit
94a55deb86
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user