Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Oct 16, 2018
1 parent fbce354 commit dba80c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/queryparser/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ def _test_adql_postgresql_translation_parsing(self, query, columns=None,
tables=None, display_columns=None,
indexed_objects=None):
adt = ADQLQueryTranslator()
qp = PostgreSQLQueryProcessor(indexed_objects=indexed_objects)
qp = PostgreSQLQueryProcessor()

adt.set_query(query)

qp.set_query(adt.to_postgresql())
qp.process_query()
qp.process_query(indexed_objects=indexed_objects)

qp_columns = ['.'.join([str(j) for j in i]) for i in qp.columns
if i[0] is not None and i[1] is not None]
Expand Down

0 comments on commit dba80c1

Please sign in to comment.