Skip to content
Myr

conftest.py

This file

Path

tests/conftest.py

24 lines · 474 bytes · Python

Last changed by

Merge pull request #3429 from nateprewitt/docstring_cleanupKenneth Reitzbefore adoptionfb01456

History of this file

Take it

Merge pull request #3429 from nateprewitt/docstring_cleanupKenneth Reitzbefore adoptionfb01456

lines 1–2why, one step back
1# -*- coding: utf-8 -*-
2

Added tests module.Dmitry Dygalobefore adoption18b26d2

lines 3–24why, one step back
3import pytest
4from 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)