]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/db/test_async_connection.py
make DB helper functions free functions
[nominatim.git] / test / python / db / test_async_connection.py
index fff695e53ebc97520ba9893f6fff470846bf7269..9647bedc802471bd41808d297f0698a29bafda50 100644 (file)
@@ -33,13 +33,13 @@ def simple_conns(temp_db):
     conn2.close()
 
 
-def test_simple_query(conn, temp_db_conn):
+def test_simple_query(conn, temp_db_cursor):
     conn.connect()
 
     conn.perform('CREATE TABLE foo (id INT)')
     conn.wait()
 
-    temp_db_conn.table_exists('foo')
+    assert temp_db_cursor.table_exists('foo')
 
 
 def test_wait_for_query(conn):