nvchecker/tests/test_httpheader.py
lilydjwg 305c329e02 add a httpheader source
see #175 for use cases.
2021-01-28 18:05:58 +08:00

14 lines
353 B
Python

# MIT licensed
# Copyright (c) 2021 lilydjwg <lilydjwg@gmail.com>, et al.
import pytest
pytestmark = pytest.mark.asyncio
async def test_redirection(get_version):
assert await get_version("jmeter-plugins-manager", {
"source": "httpheader",
"url": "https://jmeter-plugins.org/get/",
"regex": r'/([\d.]+)/',
}) == "1.6"