Definition at line 266 of file test_integration.py.
def tests.test_integration.TestExtras.test_sql_validate |
( |
|
self, |
|
|
|
con |
|
) |
| |
Definition at line 267 of file test_integration.py.
272 c.execute(
'drop table if exists stocks;')
274 'create table stocks (date_ text, trans text, symbol text, '
275 'qty int, price float, vol float);'
279 q =
"select * from stocks"
280 results = con._client.sql_validate(con._session, q)
281 col_names = sorted([r.col_name
for r
in results])
282 col_types = [r.col_type
for r
in results]
284 expected_col_names = [
356 assert col_types == expected_types
357 assert col_names == expected_col_names
The documentation for this class was generated from the following file: