Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/commit/6798cb342a12a87f067eb02b9cff3593a0edd351
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
36 additions and
0 deletions
@ -1100,6 +1100,42 @@ namespace NzbDrone.Core.Test.ProviderTests
Mocker . VerifyAllMocks ( ) ;
}
[Test]
public void IgnoreSeason_should_call_SetIgnore_in_season_provider_one_time_only ( )
{
WithRealDb ( ) ;
var episodes = Builder < Episode > . CreateListOfSize ( 4 )
. All ( )
. With ( c = > c . SeriesId = 10 )
. With ( c = > c . SeasonNumber = 1 )
. With ( c = > c . Ignored = false )
. Build ( ) . ToList ( ) ;
var season = new Season
{
SeriesId = 10 ,
SeasonNumber = 1 ,
Ignored = false
} ;
Db . Insert ( season ) ;
Db . InsertMany ( episodes ) ;
Mocker . GetMock < SeasonProvider > ( ) . Setup ( s = > s . SetIgnore ( 10 , 1 , true ) ) . Verifiable ( ) ;
//Act
Mocker . Resolve < EpisodeProvider > ( ) . SetSeasonIgnore ( 10 , 1 , true ) ;
//Assert
var episodesInDb = Db . Fetch < Episode > ( @"SELECT * FROM Episodes" ) ;
episodesInDb . Should ( ) . HaveCount ( 4 ) ;
episodesInDb . Where ( e = > e . Ignored ) . Should ( ) . HaveCount ( 4 ) ;
Mocker . GetMock < SeasonProvider > ( ) . Verify ( s = > s . SetIgnore ( 10 , 1 , true ) , Times . Once ( ) ) ;
}
[Test]
public void EpisodesWithoutFiles_no_specials ( )
{