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

Unified Diff: recipe_engine/third_party/requests/tests/test_hooks.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/test_hooks.py
diff --git a/recipe_engine/third_party/requests/tests/test_hooks.py b/recipe_engine/third_party/requests/tests/test_hooks.py
deleted file mode 100644
index e2b174d853ef0149236739605d80ab3a979c9cbe..0000000000000000000000000000000000000000
--- a/recipe_engine/third_party/requests/tests/test_hooks.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# coding: utf-8
-import pytest
-
-from requests import hooks
-
-
-def hook(value):
- return value[1:]
-
-
-@pytest.mark.parametrize(
- 'hooks_list, result', (
- (hook, 'ata'),
- ([hook, lambda x: None, hook], 'ta'),
- )
-)
-def test_hooks(hooks_list, result):
- assert hooks.dispatch_hook('response', {'response': hooks_list}, 'Data') == result
-
-
-def test_default_hooks():
- assert hooks.default_hooks() == {'response': []}
« no previous file with comments | « recipe_engine/third_party/requests/tests/conftest.py ('k') | recipe_engine/third_party/requests/tests/test_lowlevel.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698