Skip to content
Myr

Fixed test execution.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Dmitry Dygalo · committed by Dmitry Dygalo · parent 7461371 · Browse files · 2 files+4 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−3 removed

  • other:+4 added−3 removed

2 files+4 added−3 removed

modified:setup.py-1 removed
1#!/usr/bin/env python23import os4import platform4import re5import sys67from codecs import open
90 unmodified lines
modified:test_requests.py+4 added-2 removed
604 unmodified lines
605 assert b"text/py-content-type" in r.request.body606607 def test_hook_receives_request_arguments(self, httpbin):608 def hook(resp, **kwargs):609 # FIXME. Not executed609 assert resp is not None610 assert kwargs != {}611612 s = requests.Session()613 requests.Request('GET', httpbin(), hooks={'response': hook})613 r = requests.Request('GET', httpbin(), hooks={'response': hook})614 prep = s.prepare_request(r)615 s.send(prep)616617 def test_session_hooks_are_used_with_no_request_hooks(self, httpbin):618 hook = lambda x, *args, **kwargs: x619 s = requests.Session()
1106 unmodified lines