Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ImoutoChan committed Dec 6, 2023
1 parent 0f69200 commit 8d95302
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Imouto.BooruParser.Tests/Loaders/DanbooruLoaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ public async Task ShouldLoadChildrenFor5314036()
var post = await loader.GetPostAsync(5314036);

post.Tags.Count.Should().BeGreaterThan(30);
post.ChildrenIds.Count.Should().Be(1);
post.ChildrenIds.Count.Should().Be(2);
post.ChildrenIds.First().Should().Be(new PostIdentity(5318896, "46dda085dc9c60dd4380ed7b4433aa41"));
post.Parent.Should().BeNull();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class SankakuLoaderFixture
private IBooruApiLoader? _withAuth;
private IBooruApiLoader? _withoutAuth;
private IBooruApiAccessor? _apiAccessor;
private readonly bool _enableCache = true;
private readonly bool _enableCache = false;

private IFlurlClientFactory Factory =>
_enableCache ? new HardCachePerBaseUrlFlurlClientFactory() : new PerBaseUrlFlurlClientFactory();
Expand Down
4 changes: 2 additions & 2 deletions Imouto.BooruParser.Tests/Loaders/Rule34LoaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public async Task ShouldReturnPost()
post.Id.Id.Should().Be(8548333);
post.Id.Md5Hash.Should().Be("42936037bc650b4d38bc9f6df355b0f1");
post.Notes.Should().BeEmpty();
post.Tags.Should().HaveCount(99);
post.Tags.Should().HaveCount(100);

foreach (var postTag in post.Tags)
{
Expand Down Expand Up @@ -65,7 +65,7 @@ public async Task ShouldReturnPostByMd5()
post.Id.Id.Should().Be(8548333);
post.Id.Md5Hash.Should().Be("42936037bc650b4d38bc9f6df355b0f1");
post.Notes.Should().BeEmpty();
post.Tags.Should().HaveCount(99);
post.Tags.Should().HaveCount(100);

foreach (var postTag in post.Tags)
{
Expand Down
2 changes: 1 addition & 1 deletion Imouto.BooruParser.Tests/Loaders/YandereLoaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public async Task ShouldGetTagHistoryFromIdToPresent()
/// <summary>
/// Bug with loading history after 4952686
/// </summary>
[Fact]
[Fact(Skip = "Too long history")]
public async Task ShouldGetTagHistoryFrom4952686IdToPresent()
{
var loader = _loaderFixture.GetLoader();
Expand Down

0 comments on commit 8d95302

Please sign in to comment.