|
34 | 34 | from cloudant.client import Cloudant, CouchDB |
35 | 35 | from cloudant.error import CloudantArgumentError, CloudantClientException |
36 | 36 | from cloudant.feed import Feed, InfiniteFeed |
37 | | -from cloudant._common_util import InfiniteSession |
| 37 | +from cloudant._common_util import CookieSession |
38 | 38 |
|
39 | 39 | from .unit_t_db_base import UnitTestDbBase |
40 | 40 | from .. import bytes_, str_ |
@@ -163,29 +163,29 @@ def test_multiple_connect(self): |
163 | 163 |
|
164 | 164 | def test_auto_renew_enabled(self): |
165 | 165 | """ |
166 | | - Test that InfiniteSession is used when auto_renew is enabled. |
| 166 | + Test that CookieSession is used when auto_renew is enabled. |
167 | 167 | """ |
168 | 168 | try: |
169 | 169 | self.set_up_client(auto_renew=True) |
170 | 170 | self.client.connect() |
171 | 171 | if os.environ.get('ADMIN_PARTY') == 'true': |
172 | 172 | self.assertIsInstance(self.client.r_session, requests.Session) |
173 | 173 | else: |
174 | | - self.assertIsInstance(self.client.r_session, InfiniteSession) |
| 174 | + self.assertIsInstance(self.client.r_session, CookieSession) |
175 | 175 | finally: |
176 | 176 | self.client.disconnect() |
177 | 177 |
|
178 | 178 | def test_auto_renew_enabled_with_auto_connect(self): |
179 | 179 | """ |
180 | | - Test that InfiniteSession is used when auto_renew is enabled along with |
| 180 | + Test that CookieSession is used when auto_renew is enabled along with |
181 | 181 | an auto_connect. |
182 | 182 | """ |
183 | 183 | try: |
184 | 184 | self.set_up_client(auto_connect=True, auto_renew=True) |
185 | 185 | if os.environ.get('ADMIN_PARTY') == 'true': |
186 | 186 | self.assertIsInstance(self.client.r_session, requests.Session) |
187 | 187 | else: |
188 | | - self.assertIsInstance(self.client.r_session, InfiniteSession) |
| 188 | + self.assertIsInstance(self.client.r_session, CookieSession) |
189 | 189 | finally: |
190 | 190 | self.client.disconnect() |
191 | 191 |
|
|
0 commit comments