Files
plezy/test/models/plex_home_test.dart
edde746 a33c423985 refactor(models): stop parsing wire fields and enum members nothing consumes
Parse-only DTO surface deleted across trackers and catalog models: quality-preset storageKey/fromStorage round-trips (persistence uses EnumPref on .name), PlexHome's placeholder identity fields (id stays — deriveHomeSecret reads it), SeerrUser.email/avatar, SimklSearchResult.endpointType, SimklDetail.type, SimklAllItemsEntry.status/isShow, TraktCatalogEntry.rank, CatalogItem.relevance, and the never-produced CatalogRankScope.favorited/.seasonal members with their label arms. Tracker root: OAuthProxyStart.expiresIn, TrackerSession.scope/isExpired, copyWith slimmed to its one real parameter, TrackerHttpClient.service. TrackerAccountStore.service and the trackerAccountStore() alias are live (persisted-blob validation, callers) and stay.
2026-08-17 19:02:24 +02:00

12 lines
332 B
Dart

import 'package:flutter_test/flutter_test.dart';
import 'package:plezy/models/plex/plex_home.dart';
void main() {
test('PlexHome tolerates scalar drift from the account API', () {
final home = PlexHome.fromJson({'id': '7', 'name': 42, 'users': <dynamic>[]});
expect(home.id, 7);
expect(home.users, isEmpty);
});
}