-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for #76 which should be fixed
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']) |