mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
fixed issue with number only series title.
series detail page should load much faster.
This commit is contained in:
parent
91cef6d662
commit
f44ef2ff5e
3 changed files with 13 additions and 33 deletions
|
@ -44,7 +44,6 @@ namespace NzbDrone.Integration.Test
|
|||
Series.All().Should().HaveCount(1);
|
||||
|
||||
Series.Get(series.Id).Should().NotBeNull();
|
||||
Series.Get(series.TitleSlug).Should().NotBeNull();
|
||||
|
||||
Series.Delete(series.Id);
|
||||
|
||||
|
@ -53,9 +52,9 @@ namespace NzbDrone.Integration.Test
|
|||
|
||||
|
||||
[Test]
|
||||
public void should_be_able_to_add_and_get_number_only_series_title()
|
||||
public void should_be_able_to_find_series_by_id()
|
||||
{
|
||||
var series = Series.Lookup("90210").First(c=>c.TitleSlug == "90210");
|
||||
var series = Series.Lookup("90210").First();
|
||||
|
||||
series.QualityProfileId = 1;
|
||||
series.Path = @"C:\Test\90210";
|
||||
|
@ -65,14 +64,8 @@ namespace NzbDrone.Integration.Test
|
|||
Series.All().Should().HaveCount(1);
|
||||
|
||||
Series.Get(series.Id).Should().NotBeNull();
|
||||
Series.Get(series.TitleSlug).Should().NotBeNull();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void wrong_slug_should_return_404()
|
||||
{
|
||||
Series.Get("non-existing-slug", HttpStatusCode.NotFound);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void invalid_id_should_return_404()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue