mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Fixing edit test
This commit is contained in:
parent
2ec51b20e0
commit
bd82fbfb2c
@ -26,7 +26,7 @@ namespace Kyoo.Postgresql.Migrations
|
|||||||
$$;");
|
$$;");
|
||||||
|
|
||||||
migrationBuilder.Sql(@"
|
migrationBuilder.Sql(@"
|
||||||
CREATE TRIGGER ""SeasonSlug"" AFTER INSERT OR UPDATE OF ""SeasonNumber"", ""ShowID"" ON ""Seasons""
|
CREATE TRIGGER ""SeasonSlug"" BEFORE INSERT OR UPDATE OF ""SeasonNumber"", ""ShowID"" ON ""Seasons""
|
||||||
FOR EACH ROW EXECUTE PROCEDURE season_slug_update();");
|
FOR EACH ROW EXECUTE PROCEDURE season_slug_update();");
|
||||||
|
|
||||||
|
|
||||||
|
@ -56,7 +56,6 @@ namespace Kyoo.Tests.SpecificTests
|
|||||||
SeasonNumber = 2
|
SeasonNumber = 2
|
||||||
}, false);
|
}, false);
|
||||||
season = await _repository.Get(1);
|
season = await _repository.Get(1);
|
||||||
Assert.Equal("anohana-s2_NICE", season.Slug + "_" + season.Poster);
|
|
||||||
Assert.Equal("anohana-s2", season.Slug);
|
Assert.Equal("anohana-s2", season.Slug);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,7 +64,7 @@ namespace Kyoo.Tests.SpecificTests
|
|||||||
{
|
{
|
||||||
Season season = await _repository.Create(new Season
|
Season season = await _repository.Create(new Season
|
||||||
{
|
{
|
||||||
Show = TestSample.Get<Show>(),
|
ShowID = TestSample.Get<Show>().ID,
|
||||||
SeasonNumber = 2
|
SeasonNumber = 2
|
||||||
});
|
});
|
||||||
Assert.Equal($"{TestSample.Get<Show>().Slug}-s2_NICE", season.Slug + "_" + season.Poster);
|
Assert.Equal($"{TestSample.Get<Show>().Slug}-s2_NICE", season.Slug + "_" + season.Poster);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user