Skip to content
Myr

conftest.py

This file

Path

tests/conftest.py

24 lines · 474 bytes · Python

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 8480cf9 point at it.

Merge pull request #4237 from robinske/doc-importKenneth Reitzbefore adoption8480cf9

lines 1–24why, one step back
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)