mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-20 22:14:34 -04:00
New: Drone now uses the Download Client API to determine if a download is ready for import. (User configuration is required to replace the drone factory with this feature)
This commit is contained in:
@@ -29,37 +29,6 @@ namespace NzbDrone.Core.Test.IndexerTests
|
||||
Mocker.SetConstant<IEnumerable<IIndexer>>(_indexers);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_create_default_indexer_on_startup()
|
||||
{
|
||||
IList<IndexerDefinition> storedIndexers = null;
|
||||
|
||||
Mocker.GetMock<IIndexerRepository>()
|
||||
.Setup(c => c.InsertMany(It.IsAny<IList<IndexerDefinition>>()))
|
||||
.Callback<IList<IndexerDefinition>>(indexers => storedIndexers = indexers);
|
||||
|
||||
Subject.Handle(new ApplicationStartedEvent());
|
||||
|
||||
storedIndexers.Should().NotBeEmpty();
|
||||
storedIndexers.Select(c => c.Name).Should().OnlyHaveUniqueItems();
|
||||
storedIndexers.Select(c => c.Enable).Should().NotBeEmpty();
|
||||
storedIndexers.Select(c => c.Implementation).Should().NotContainNulls();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void getting_list_of_indexers()
|
||||
{
|
||||
Mocker.SetConstant<IIndexerRepository>(Mocker.Resolve<IndexerRepository>());
|
||||
|
||||
Subject.Handle(new ApplicationStartedEvent());
|
||||
|
||||
var indexers = Subject.All().ToList();
|
||||
indexers.Should().NotBeEmpty();
|
||||
indexers.Should().NotContain(c => c.Settings == null);
|
||||
indexers.Should().NotContain(c => c.Name == null);
|
||||
indexers.Select(c => c.Name).Should().OnlyHaveUniqueItems();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_remove_missing_indexers_on_startup()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user