test: replace raw execute() with fixture code where possible

This commit is contained in:
Sarah Hoffmann
2021-05-19 12:11:04 +02:00
parent 65bd749918
commit c06a1d007a
15 changed files with 128 additions and 186 deletions

View File

@@ -3,7 +3,7 @@ Specialised psycopg2 cursor with shortcut functions useful for testing.
"""
import psycopg2.extras
class TestingCursor(psycopg2.extras.DictCursor):
class CursorForTesting(psycopg2.extras.DictCursor):
""" Extension to the DictCursor class that provides execution
short-cuts that simplify writing assertions.
"""