mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-02 08:47:59 +02:00
fixed trakt test to be less fragile.
This commit is contained in:
@@ -88,13 +88,15 @@ namespace NzbDrone.Core.Test.MetadataSourceTests
|
||||
foreach (var episode in episodes)
|
||||
{
|
||||
ValidateEpisode(episode);
|
||||
|
||||
//if atleast one episdoe has title it means parse it working.
|
||||
episodes.Should().Contain(c => !string.IsNullOrWhiteSpace(c.Title));
|
||||
}
|
||||
}
|
||||
|
||||
private void ValidateEpisode(Episode episode)
|
||||
{
|
||||
episode.Should().NotBeNull();
|
||||
episode.Title.Should().NotBeBlank();
|
||||
episode.EpisodeNumber.Should().NotBe(0);
|
||||
episode.TvDbEpisodeId.Should().BeGreaterThan(0);
|
||||
|
||||
|
Reference in New Issue
Block a user