Merge "Fix occurences of adatper
"
This commit is contained in:
commit
11f77e0f5c
@ -15,7 +15,7 @@ The Basics
|
|||||||
==========
|
==========
|
||||||
|
|
||||||
Everything in `requests`_ eventually goes through an adapter to do the transport work.
|
Everything in `requests`_ eventually goes through an adapter to do the transport work.
|
||||||
`requests-mock` creates a custom `adatper` that allows you to predefine responses when certain URIs are called.
|
`requests-mock` creates a custom `adapter` that allows you to predefine responses when certain URIs are called.
|
||||||
|
|
||||||
There are then a number of methods provided to get the adapter used.
|
There are then a number of methods provided to get the adapter used.
|
||||||
|
|
||||||
|
@ -374,7 +374,7 @@ class SessionAdapterTests(base.TestCase):
|
|||||||
self.assertTrue(self.adapter.called)
|
self.assertTrue(self.adapter.called)
|
||||||
self.assertFalse(m.called_once)
|
self.assertFalse(m.called_once)
|
||||||
|
|
||||||
def test_adapter_picks_correct_adatper(self):
|
def test_adapter_picks_correct_adapter(self):
|
||||||
good = '%s://test3.url/' % self.PREFIX
|
good = '%s://test3.url/' % self.PREFIX
|
||||||
self.adapter.register_uri('GET',
|
self.adapter.register_uri('GET',
|
||||||
'%s://test1.url' % self.PREFIX,
|
'%s://test1.url' % self.PREFIX,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user