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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: recipe_engine/third_party/requests/tests/conftest.py
diff --git a/recipe_engine/third_party/requests/tests/conftest.py b/recipe_engine/third_party/requests/tests/conftest.py
deleted file mode 100644
index af20e54df436b676ee9af086bc05f466da606687..0000000000000000000000000000000000000000
--- a/recipe_engine/third_party/requests/tests/conftest.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# coding: utf-8
-import pytest
-from requests.compat import urljoin
-
-
-def prepare_url(value):
- # Issue #1483: Make sure the URL always has a trailing slash
- httpbin_url = value.url.rstrip('/') + '/'
-
- def inner(*suffix):
- return urljoin(httpbin_url, '/'.join(suffix))
-
- return inner
-
-
-@pytest.fixture
-def httpbin(httpbin):
- return prepare_url(httpbin)
-
-
-@pytest.fixture
-def httpbin_secure(httpbin_secure):
- return prepare_url(httpbin_secure)
« 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