-
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
from tests.testcase import HttpSessionTestCase | ||
from tests.testcase import HttpSessionTestCase, HttpEngineTestCase | ||
|
||
|
||
class CursorTestCase(HttpSessionTestCase): | ||
def test_check_iter_cursor(self): | ||
class CursorTestCase(HttpSessionTestCase, HttpEngineTestCase): | ||
def test_check_iter_cursor_by_session(self): | ||
rv = self.session.execute('SELECT number FROM system.numbers LIMIT 5') | ||
self.assertListEqual(list(rv), [(x,) for x in range(5)]) | ||
|
||
def test_check_iter_cursor_by_engine(self): | ||
rv = self.engine.execute('SELECT number FROM system.numbers LIMIT 5') | ||
self.assertListEqual(list(rv), [(x,) for x in range(5)]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters