mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: UpdateMovieQualityService Tests.
This commit is contained in:
@@ -10,6 +10,7 @@ using NzbDrone.Core.Parser;
|
||||
using NzbDrone.Core.Parser.Model;
|
||||
using NzbDrone.Core.Qualities;
|
||||
using NzbDrone.Core.Test.Framework;
|
||||
using NzbDrone.Test.Common;
|
||||
|
||||
namespace NzbDrone.Core.Test.MediaFiles
|
||||
{
|
||||
@@ -58,6 +59,8 @@ namespace NzbDrone.Core.Test.MediaFiles
|
||||
{
|
||||
ExecuteCommand();
|
||||
|
||||
ExceptionVerification.ExpectedWarns(1);
|
||||
|
||||
Mocker.GetMock<IMediaFileService>().Verify(s => s.Update(It.IsAny<MovieFile>()), Times.Never());
|
||||
}
|
||||
|
||||
|
@@ -72,7 +72,7 @@ namespace NzbDrone.Core.MediaFiles
|
||||
|
||||
ParsedMovieInfo parsedMovieInfo = null;
|
||||
|
||||
if (latestImportedName?.IsNotNullOrWhiteSpace() == false)
|
||||
if (latestImportedName?.IsNotNullOrWhiteSpace() == true)
|
||||
{
|
||||
parsedMovieInfo = _parsingService.ParseMovieInfo(latestImportedName, helpers);
|
||||
}
|
||||
|
Reference in New Issue
Block a user