tests: httpbin seems to be overloaded, disabled temporarily

This commit is contained in:
lilydjwg 2018-05-08 19:27:45 +08:00
parent 9273f30036
commit ded2bcd8c5
1 changed files with 9 additions and 1 deletions

View File

@ -4,9 +4,17 @@
import pytest
pytestmark = pytest.mark.asyncio
async def test_regex(get_version):
@pytest.mark.skipif(True,
reason='httpbin is overloaded?')
async def test_regex_httpbin(get_version):
assert await get_version("example", {
"url": "https://httpbin.org/get",
"regex": '"User-Agent": "(\w+)"',
"user_agent": "Meow",
}) == "Meow"
async def test_regex(get_version):
assert await get_version("example", {
"url": "https://example.net/",
"regex": 'for (\w+) examples',
}) == "illustrative"