conftest.py
This file
Path
tests/conftest.py
24 lines · 474 bytes · Python
Last changed by
Not known.
History of this fileTake it
1# -*- coding: utf-8 -*-23import pytest4from requests.compat import urljoin567def prepare_url(value):8 # Issue #1483: Make sure the URL always has a trailing slash9 httpbin_url = value.url.rstrip('/') + '/'1011 def inner(*suffix):12 return urljoin(httpbin_url, '/'.join(suffix))1314 return inner151617@pytest.fixture18def httpbin(httpbin):19 return prepare_url(httpbin)202122@pytest.fixture23def httpbin_secure(httpbin_secure):24 return prepare_url(httpbin_secure)