diff --git a/tests/Fergun.Tests/Apis/BingVisualSearchTests.cs b/tests/Fergun.Tests/Apis/BingVisualSearchTests.cs index 3ca0066..5f09b67 100644 --- a/tests/Fergun.Tests/Apis/BingVisualSearchTests.cs +++ b/tests/Fergun.Tests/Apis/BingVisualSearchTests.cs @@ -38,7 +38,6 @@ public async Task ReverseImageSearchAsync_Returns_Results(string url, BingSafeSe } [Theory] - [InlineData("https://cdn.discordapp.com/attachments/838832564583661638/954475252027641886/tts.mp3")] // MP3 file [InlineData("https://upload.wikimedia.org/wikipedia/commons/2/29/Suru_Bog_10000px.jpg")] // 10000px image [InlineData("https://simpl.info/bigimage/bigImage.jpg")] // 91 MB file public async Task ReverseImageSearchAsync_Throws_BingException_If_Image_Is_Invalid(string url) diff --git a/tests/Fergun.Tests/Apis/GoogleLensTests.cs b/tests/Fergun.Tests/Apis/GoogleLensTests.cs index 1aab685..86e2995 100644 --- a/tests/Fergun.Tests/Apis/GoogleLensTests.cs +++ b/tests/Fergun.Tests/Apis/GoogleLensTests.cs @@ -12,7 +12,7 @@ public class GoogleLensTests private readonly IGoogleLensClient _googleLens = new GoogleLensClient(); [Theory] - [InlineData("https://cdn.discordapp.com/attachments/838832564583661638/954474328324460544/lorem_ipsum.png")] + [InlineData("https://upload.wikimedia.org/wikipedia/commons/0/01/Windows_fonts_most_used.jpg")] [InlineData("https://upload.wikimedia.org/wikipedia/commons/5/57/Lorem_Ipsum_Helvetica.png")] public async Task OcrAsync_Returns_Text(string url) { @@ -23,7 +23,6 @@ public async Task OcrAsync_Returns_Text(string url) } [Theory] - [InlineData("https://cdn.discordapp.com/attachments/838832564583661638/954475252027641886/tts.mp3")] // MP3 file [InlineData("https://upload.wikimedia.org/wikipedia/commons/2/29/Suru_Bog_10000px.jpg")] // 10000px image [InlineData("https://simpl.info/bigimage/bigImage.jpg")] // 91 MB file public async Task OcrAsync_Throws_GoogleLensException_If_Image_Is_Invalid(string url) @@ -51,7 +50,6 @@ public async Task ReverseImageSearchAsync_Returns_Results(string url, string? la } [Theory] - [InlineData("https://cdn.discordapp.com/attachments/838832564583661638/954475252027641886/tts.mp3")] // MP3 file [InlineData("https://upload.wikimedia.org/wikipedia/commons/2/29/Suru_Bog_10000px.jpg")] // 10000px image [InlineData("https://simpl.info/bigimage/bigImage.jpg")] // 91 MB file public async Task ReverseImageSearchAsync_Throws_GoogleLensException_If_Image_Is_Invalid(string url) diff --git a/tests/Fergun.Tests/Apis/YandexImageSearchTests.cs b/tests/Fergun.Tests/Apis/YandexImageSearchTests.cs index eca7a27..c3685ce 100644 --- a/tests/Fergun.Tests/Apis/YandexImageSearchTests.cs +++ b/tests/Fergun.Tests/Apis/YandexImageSearchTests.cs @@ -17,7 +17,7 @@ public class YandexImageSearchTests private readonly IYandexImageSearch _yandexImageSearch = new YandexImageSearch(); [Theory] - [InlineData("https://cdn.discordapp.com/attachments/838832564583661638/954474328324460544/lorem_ipsum.png")] + [InlineData("https://upload.wikimedia.org/wikipedia/commons/0/01/Windows_fonts_most_used.jpg")] [InlineData("https://upload.wikimedia.org/wikipedia/commons/5/57/Lorem_Ipsum_Helvetica.png")] public async Task OcrAsync_Returns_Text(string url) { diff --git a/tests/Fergun.Tests/Modules/ImageModuleTests.cs b/tests/Fergun.Tests/Modules/ImageModuleTests.cs index 4b34a1f..d4b7048 100644 --- a/tests/Fergun.Tests/Modules/ImageModuleTests.cs +++ b/tests/Fergun.Tests/Modules/ImageModuleTests.cs @@ -145,8 +145,8 @@ public async Task ReverseAsync_Sends_Paginator(string? url, IAttachment? file, R } [Theory] - [InlineData("", null, ReverseImageSearchEngine.Bing, true, false, "NoResults")] - [InlineData("", null, ReverseImageSearchEngine.Yandex, true, true, "NoResults")] + [InlineData("", null, ReverseImageSearchEngine.Bing, true, false, "UrlNotWellFormed")] + [InlineData("", null, ReverseImageSearchEngine.Yandex, true, true, "UrlNotWellFormed")] [InlineData(null, null, ReverseImageSearchEngine.Bing, false, true, "UrlOrAttachmentRequired")] [InlineData(null, null, ReverseImageSearchEngine.Yandex, false, true, "UrlOrAttachmentRequired")] public async Task ReverseAsync_Returns_No_Results(string? url, IAttachment? file, ReverseImageSearchEngine engine, bool multiImages, bool nsfw, string message) @@ -165,7 +165,7 @@ public async Task ReverseAsync_Returns_No_Results(string? url, IAttachment? file [Fact] public async Task ReverseAsync_Throws_Exception_If_Invalid_Engine_Is_Passed() { - await Assert.ThrowsAsync("engine", () => _module.ReverseAsync("", It.IsAny(), (ReverseImageSearchEngine)3, It.IsAny())); + await Assert.ThrowsAsync("engine", () => _module.ReverseAsync("https://example.com/image.png", It.IsAny(), (ReverseImageSearchEngine)3, It.IsAny())); } [Theory]