From ded2bcd8c52975a49f6f0f96a743415d964ea468 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Tue, 8 May 2018 19:27:45 +0800 Subject: [PATCH] tests: httpbin seems to be overloaded, disabled temporarily --- tests/test_regex.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/test_regex.py b/tests/test_regex.py index 5f2b084..46f39ba 100644 --- a/tests/test_regex.py +++ b/tests/test_regex.py @@ -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"