Skip to content

Commit 2449d40

Browse files
Enable transaction context manager test for psycopg instrumentation
The conn.transaction() context manager now works correctly thanks to the lazy capture mechanism that defers fetchall() until fetch is called.
1 parent 0526956 commit 2449d40

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drift/instrumentation/psycopg/e2e-tests/src/test_requests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@
7272
# Test: NULL values handling (integrated into E2E suite)
7373
make_request("GET", "/test/null-values")
7474

75+
# Test: Transaction context manager
76+
make_request("GET", "/test/transaction-context")
77+
7578
# These still need investigation:
76-
# make_request("GET", "/test/transaction-context")
7779
# make_request("GET", "/test/json-jsonb")
7880
# make_request("GET", "/test/array-types")
7981

0 commit comments

Comments
 (0)