mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Print request URL when package fails
This commit is contained in:
@ -16,11 +16,11 @@ import pytest
|
|||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
|
||||||
def validate_response(req):
|
def validate_response(r):
|
||||||
assert req.status_code == 200
|
assert r.status_code == 200, r.url
|
||||||
assert int(req.headers['Content-Length']) > 0
|
assert int(r.headers['Content-Length']) > 0, r.url
|
||||||
assert req.headers['Content-Type'] in ("application/gzip",
|
assert r.headers['Content-Type'] in ("application/gzip",
|
||||||
"application/octet-stream")
|
"application/octet-stream")
|
||||||
|
|
||||||
|
|
||||||
def test_packages():
|
def test_packages():
|
||||||
|
Reference in New Issue
Block a user