Quellcode durchsuchen

fixed FourSisters test case

The files should be treated as separate movies and should not be stacked, because the parttype is missing.
mammo0 vor 2 Jahren
Ursprung
Commit
90e8aad05d
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      tests/Jellyfin.Naming.Tests/Video/VideoListResolverTests.cs

+ 3 - 1
tests/Jellyfin.Naming.Tests/Video/VideoListResolverTests.cs

@@ -332,7 +332,9 @@ namespace Jellyfin.Naming.Tests.Video
                 files.Select(i => VideoResolver.Resolve(i, false, _namingOptions)).OfType<VideoFileInfo>().ToList(),
                 files.Select(i => VideoResolver.Resolve(i, false, _namingOptions)).OfType<VideoFileInfo>().ToList(),
                 _namingOptions).ToList();
                 _namingOptions).ToList();
 
 
-            Assert.Single(result);
+            // The result should contain to individual movies
+            // Version grouping should not work here, because the files are not in a directory with the name 'Four Sisters and a Wedding'
+            Assert.Equal(2, result.Count);
         }
         }
 
 
         [Fact]
         [Fact]