Skip to content

Commit

Permalink
Add test for #76 which should be fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dlopes7 committed May 10, 2024
1 parent cc51fd7 commit b47716f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_psycopg2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import autodynatrace

import psycopg2
from psycopg2.extras import RealDictCursor


def test_instrumentation():
conn = psycopg2.connect("dbname=invictus user=invictus password=password")
cur = conn.cursor(cursor_factory=RealDictCursor)
cur.execute("SELECT tablename, tableowner FROM pg_catalog.pg_tables")
for row in cur:
print(row['tablename'])

0 comments on commit b47716f

Please sign in to comment.