conftest.py
This file
Path
tests/conftest.py
24 lines · 474 bytes · Python
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 8546a15 point at it.
The library raises NoneType error when file-pointer (fp) resolves to None.Rajiv Mayanibefore adoption8546a15
lines 1–24why, one step back1# -*- 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)