attempt to make travis green again
This commit is contained in:
parent
d13535471b
commit
cf28222d2c
1 changed files with 18 additions and 14 deletions
|
|
@ -37,13 +37,15 @@ proc asyncTest() {.async.} =
|
||||||
doAssert(false, "HttpRequestError should have been raised")
|
doAssert(false, "HttpRequestError should have been raised")
|
||||||
|
|
||||||
|
|
||||||
# Multipart test.
|
when false:
|
||||||
var data = newMultipartData()
|
# w3.org now blocks travis, so disabled:
|
||||||
data["output"] = "soap12"
|
# Multipart test.
|
||||||
data["uploaded_file"] = ("test.html", "text/html",
|
var data = newMultipartData()
|
||||||
"<html><head></head><body><p>test</p></body></html>")
|
data["output"] = "soap12"
|
||||||
resp = await client.post("http://validator.w3.org/check", multipart=data)
|
data["uploaded_file"] = ("test.html", "text/html",
|
||||||
doAssert(resp.code.is2xx)
|
"<html><head></head><body><p>test</p></body></html>")
|
||||||
|
resp = await client.post("http://validator.w3.org/check", multipart=data)
|
||||||
|
doAssert(resp.code.is2xx)
|
||||||
|
|
||||||
# onProgressChanged
|
# onProgressChanged
|
||||||
when manualTests:
|
when manualTests:
|
||||||
|
|
@ -85,13 +87,15 @@ proc syncTest() =
|
||||||
except:
|
except:
|
||||||
doAssert(false, "HttpRequestError should have been raised")
|
doAssert(false, "HttpRequestError should have been raised")
|
||||||
|
|
||||||
# Multipart test.
|
when false:
|
||||||
var data = newMultipartData()
|
# w3.org now blocks travis, so disabled:
|
||||||
data["output"] = "soap12"
|
# Multipart test.
|
||||||
data["uploaded_file"] = ("test.html", "text/html",
|
var data = newMultipartData()
|
||||||
"<html><head></head><body><p>test</p></body></html>")
|
data["output"] = "soap12"
|
||||||
resp = client.post("http://validator.w3.org/check", multipart=data)
|
data["uploaded_file"] = ("test.html", "text/html",
|
||||||
doAssert(resp.code.is2xx)
|
"<html><head></head><body><p>test</p></body></html>")
|
||||||
|
resp = client.post("http://validator.w3.org/check", multipart=data)
|
||||||
|
doAssert(resp.code.is2xx)
|
||||||
|
|
||||||
# onProgressChanged
|
# onProgressChanged
|
||||||
when manualTests:
|
when manualTests:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue