test: give the statistics fixtures distinct file and total counts

The artist, album and season statistics fixtures set the file count equal to the total count, so the columns rendering the pair showed the same number twice and swapping the two fields changed nothing. The JSON fixtures move with them so the round trip assertions still hold.
This commit is contained in:
Dark-Alex-17 committed 2026-09-10 01:10:41 -06:00
1 parent 1a5e5c3145
commit 12dbbf0b1b
56 files changed
+71 -71

No files matched your search

@@ -112,7 +112,7 @@ mod tests {
"ratings": { "votes": 15, "value": 8.4 },
"statistics": {
"albumCount": 1,
"trackFileCount": 15,
"trackFileCount": 12,
"trackCount": 15,
"totalTrackCount": 15,
"sizeOnDisk": 12345,
@@ -151,7 +151,7 @@ mod tests {
"ratings": { "votes": 15, "value": 8.4 },
"statistics": {
"albumCount": 1,
"trackFileCount": 15,
"trackFileCount": 12,
"trackCount": 15,
"totalTrackCount": 15,
"sizeOnDisk": 12345,
@@ -263,7 +263,7 @@ mod tests {
"ratings": { "votes": 15, "value": 8.4 },
"statistics": {
"albumCount": 1,
"trackFileCount": 15,
"trackFileCount": 12,
"trackCount": 15,
"totalTrackCount": 15,
"sizeOnDisk": 12345,
@@ -301,7 +301,7 @@ mod tests {
"ratings": { "votes": 15, "value": 8.4 },
"statistics": {
"albumCount": 1,
"trackFileCount": 15,
"trackFileCount": 12,
"trackCount": 15,
"totalTrackCount": 15,
"sizeOnDisk": 12345,
@@ -31,7 +31,7 @@ mod tests {
"ratings": {"votes": 15, "value": 8.4},
"releaseDate": "2023-01-01T00:00:00Z",
"statistics": {
"trackFileCount": 10,
"trackFileCount": 8,
"trackCount": 10,
"totalTrackCount": 10,
"sizeOnDisk": 1024,
@@ -50,7 +50,7 @@ pub mod test_utils {
"ratings": { "votes": 15, "value": 8.4 },
"statistics": {
"albumCount": 1,
"trackFileCount": 15,
"trackFileCount": 12,
"trackCount": 15,
"totalTrackCount": 15,
"sizeOnDisk": 12345,
@@ -71,7 +71,7 @@ pub mod test_utils {
"ratings": {"votes": 15, "value": 8.4},
"releaseDate": "2023-01-01T00:00:00Z",
"statistics": {
"trackFileCount": 10,
"trackFileCount": 8,
"trackCount": 10,
"totalTrackCount": 10,
"sizeOnDisk": 1024,
@@ -96,7 +96,7 @@ pub mod test_utils {
pub fn artist_statistics() -> ArtistStatistics {
ArtistStatistics {
album_count: 1,
track_file_count: 15,
track_file_count: 12,
track_count: 15,
total_track_count: 15,
size_on_disk: 12345,
@@ -247,7 +247,7 @@ pub mod test_utils {
pub fn album_statistics() -> AlbumStatistics {
AlbumStatistics {
track_file_count: 10,
track_file_count: 8,
track_count: 10,
total_track_count: 10,
size_on_disk: 1024,
@@ -28,7 +28,7 @@ pub mod test_utils {
"monitored": true,
"statistics": {
"previousAiring": "2022-10-24T01:00:00Z",
"episodeFileCount": 10,
"episodeFileCount": 7,
"episodeCount": 10,
"totalEpisodeCount": 10,
"sizeOnDisk": 36708563419,
@@ -306,7 +306,7 @@ pub mod test_utils {
DateTime::parse_from_rfc3339("2022-10-24T01:00:00Z").unwrap(),
)),
next_airing: None,
episode_file_count: 10,
episode_file_count: 7,
episode_count: 10,
total_episode_count: 10,
size_on_disk: 36708563419,