diff options
Diffstat (limited to 'tests/test_pgexecute.py')
-rw-r--r-- | tests/test_pgexecute.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_pgexecute.py b/tests/test_pgexecute.py index f513a343..8b7db577 100644 --- a/tests/test_pgexecute.py +++ b/tests/test_pgexecute.py @@ -59,10 +59,10 @@ def test_table_and_columns_query(executor): run(executor, "create table a(x text, y text)") run(executor, "create table b(z text)") - tables, columns = executor.tables() - assert tables == ['a', 'b'] - assert columns['a'] == ['x', 'y'] - assert columns['b'] == ['z'] + tables, columns = executor.get_metadata() + assert set(tables['table']) == set(['a', 'b']) + assert set(columns['column'][columns['table']=='a']) == set(['x', 'y']) + assert set(columns['column'][columns['table']=='b']) == set(['z']) @dbtest def test_database_list(executor): |