tests: temp skip failing danbooru::http redirect tests.
Skip for now until https://github.com/postmanlabs/httpbin/issues/617 is fixed.
This commit is contained in:
@@ -11,11 +11,13 @@ class DanbooruHttpTest < ActiveSupport::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
should "follow redirects" do
|
should "follow redirects" do
|
||||||
|
skip "Skipping test (https://github.com/postmanlabs/httpbin/issues/617)"
|
||||||
response = Danbooru::Http.get("https://httpbin.org/absolute-redirect/3")
|
response = Danbooru::Http.get("https://httpbin.org/absolute-redirect/3")
|
||||||
assert_equal(200, response.status)
|
assert_equal(200, response.status)
|
||||||
end
|
end
|
||||||
|
|
||||||
should "fail if redirected too many times" do
|
should "fail if redirected too many times" do
|
||||||
|
skip "Skipping test (https://github.com/postmanlabs/httpbin/issues/617)"
|
||||||
response = Danbooru::Http.get("https://httpbin.org/absolute-redirect/10")
|
response = Danbooru::Http.get("https://httpbin.org/absolute-redirect/10")
|
||||||
assert_equal(598, response.status)
|
assert_equal(598, response.status)
|
||||||
end
|
end
|
||||||
@@ -134,6 +136,7 @@ class DanbooruHttpTest < ActiveSupport::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
should "follow redirects when downloading files" do
|
should "follow redirects when downloading files" do
|
||||||
|
skip "Skipping test (https://github.com/postmanlabs/httpbin/issues/617)"
|
||||||
response, file = Danbooru::Http.download_media("https://httpbin.org/redirect-to?url=https://httpbin.org/bytes/1000")
|
response, file = Danbooru::Http.download_media("https://httpbin.org/redirect-to?url=https://httpbin.org/bytes/1000")
|
||||||
|
|
||||||
assert_equal(200, response.status)
|
assert_equal(200, response.status)
|
||||||
|
|||||||
Reference in New Issue
Block a user