-def test_execute_file_bad_file(temp_db, tmp_path):
- with psycopg2.connect('dbname=' + temp_db) as conn:
- with pytest.raises(FileNotFoundError):
- db_utils.execute_file(conn, tmp_path / 'test2.sql')
+def test_execute_file_bad_file(temp_db_conn, tmp_path):
+ with pytest.raises(FileNotFoundError):
+ db_utils.execute_file(temp_db_conn, tmp_path / 'test2.sql')