Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: recipe_engine/third_party/requests/tests/conftest.py

Issue 2164713003: Vendor requests. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: Fix deps.pyl Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # coding: utf-8
2 import pytest
3 from requests.compat import urljoin
4
5
6 def prepare_url(value):
7 # Issue #1483: Make sure the URL always has a trailing slash
8 httpbin_url = value.url.rstrip('/') + '/'
9
10 def inner(*suffix):
11 return urljoin(httpbin_url, '/'.join(suffix))
12
13 return inner
14
15
16 @pytest.fixture
17 def httpbin(httpbin):
18 return prepare_url(httpbin)
19
20
21 @pytest.fixture
22 def httpbin_secure(httpbin_secure):
23 return prepare_url(httpbin_secure)
OLDNEW
« no previous file with comments | « recipe_engine/third_party/requests/tests/compat.py ('k') | recipe_engine/third_party/requests/tests/test_hooks.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698