You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bb2703a
Browse filesBrowse the repository at this point in the historyBrowse files
-`internal/auth/testdata/plex_tv_user.json` and `internal/auth/testdata/plex_tv_resources.json` are sanitized fixtures derived from real Plex.tv responses captured on March 6, 2026.
6
+
- These fixtures were shaped from local `.env` credentials during development and must not contain live tokens, private IPs, real email addresses, or other secrets.
7
+
- When changing Plex auth/resource normalization in `internal/auth/plextv.go`, update the fixtures and the fixture-backed tests in `internal/auth/auth_test.go` to reflect real response shapes.
8
+
- Prefer extending this fixture-based approach before adding broader mocks when validating Plex.tv schema changes.
9
+
- Apply the same pattern anywhere the CLI depends on external Plex response shapes or other schema-sensitive integrations.
10
+
- For relevant changes, prefer adding sanitized real-response fixtures plus normalization/output tests for:
11
+
- Plex.tv account, token, and resource payloads
12
+
- Plex server library, metadata, history, and stream payloads
13
+
- Command output that flattens or reformats external API responses
14
+
- When a live response reveals a field shape the current tests do not cover, add or refresh fixtures in the nearest `testdata` directory as part of the change.
0 commit comments