1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-26 01:27:00 +00:00

Removed eztv migration tests.

This commit is contained in:
Taloth Saldono 2015-06-28 20:15:17 +02:00
parent dc75c44a50
commit 461be2b388
2 changed files with 0 additions and 67 deletions

View file

@ -1,66 +0,0 @@
using System;
using System.Linq;
using FluentAssertions;
using FluentMigrator;
using NUnit.Framework;
using NzbDrone.Core.Indexers;
using NzbDrone.Core.Test.Framework;
namespace NzbDrone.Core.Test.Datastore.Migration
{
[TestFixture]
public class disable_eztvFixture : MigrationTest<Core.Datastore.Migration.disable_eztv>
{
[Test]
public void should_disable_rss_for_eztv()
{
WithTestDb(c =>
{
InsertIndexer(c, "https://www.ezrss.it/");
});
var indexers = Mocker.Resolve<IndexerRepository>().All().ToList();
indexers.First().EnableRss.Should().BeFalse();
}
[Test]
public void should_disable_search_for_eztv()
{
WithTestDb(c =>
{
InsertIndexer(c, "https://www.ezrss.it/");
});
var indexers = Mocker.Resolve<IndexerRepository>().All().ToList();
indexers.First().EnableSearch.Should().BeFalse();
}
[Test]
public void should_not_disable_if_using_custom_url()
{
WithTestDb(c =>
{
InsertIndexer(c, "https://ezrss.sonarr.tv/");
});
var indexers = Mocker.Resolve<IndexerRepository>().All().ToList();
indexers.First().EnableRss.Should().BeTrue();
indexers.First().EnableSearch.Should().BeTrue();
}
private void InsertIndexer(MigrationBase migrationBase, string url)
{
migrationBase.Insert.IntoTable("Indexers").Row(new
{
Name = "eztv",
Implementation = "Eztv",
Settings = String.Format(@"{{
""baseUrl"": ""{0}""
}}", url),
ConfigContract = "EztvSettings",
EnableRss = 1,
EnableSearch = 1
});
}
}
}

View file

@ -118,7 +118,6 @@
<Compile Include="Datastore\MappingExtentionFixture.cs" /> <Compile Include="Datastore\MappingExtentionFixture.cs" />
<Compile Include="Datastore\MarrDataLazyLoadingFixture.cs" /> <Compile Include="Datastore\MarrDataLazyLoadingFixture.cs" />
<Compile Include="Datastore\Migration\071_unknown_quality_in_profileFixture.cs" /> <Compile Include="Datastore\Migration\071_unknown_quality_in_profileFixture.cs" />
<Compile Include="Datastore\Migration\074_disable_eztvFixture.cs" />
<Compile Include="Datastore\Migration\072_history_grabIdFixture.cs" /> <Compile Include="Datastore\Migration\072_history_grabIdFixture.cs" />
<Compile Include="Datastore\Migration\070_delay_profileFixture.cs" /> <Compile Include="Datastore\Migration\070_delay_profileFixture.cs" />
<Compile Include="Datastore\Migration\086_pushbullet_device_idsFixture.cs" /> <Compile Include="Datastore\Migration\086_pushbullet_device_idsFixture.cs" />