File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -220,17 +220,3 @@ def test_query_invokes_execute(self):
220
220
obj = tornado_session .TornadoSession (io_loop = self .io_loop )
221
221
result = yield obj .query ('SELECT 1' )
222
222
_execute .assert_called_once_with ('execute' , 'SELECT 1' , None )
223
-
224
- @testing .gen_test
225
- def test_validate_invokes_connect (self ):
226
- with mock .patch ('queries.tornado_session.TornadoSession._connect' ) as \
227
- _connect :
228
- with mock .patch ('queries.pool.PoolManager.free' ):
229
- future = concurrent .Future ()
230
- connection = mock .Mock ()
231
- connection .fileno = mock .Mock (return_value = 10 )
232
- future .set_result (connection )
233
- _connect .return_value = future
234
- obj = tornado_session .TornadoSession (io_loop = self .io_loop )
235
- yield obj .validate ()
236
- _connect .assert_called_once_with ()
You can’t perform that action at this time.
0 commit comments