Merge "Fix occurences of adatper"

This commit is contained in:
Jenkins 2017-02-01 05:02:51 +00:00 committed by Gerrit Code Review
commit 11f77e0f5c
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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,