We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5694ce8 commit 39f2ef8Copy full SHA for 39f2ef8
tests/ext/pg8000/test_pg8000.py
@@ -9,20 +9,25 @@
9
from aws_xray_sdk.ext.pg8000 import unpatch
10
11
12
+@pytest.fixture(scope='module', autouse=True)
13
+def patch_module():
14
+ patch(('pg8000',))
15
+ yield
16
+ unpatch()
17
+
18
19
@pytest.fixture(autouse=True)
20
def construct_ctx():
21
"""
22
Clean up context storage on each test run and begin a segment
23
so that later subsegment can be attached. After each test run
24
it cleans up context storage again.
25
- patch(('pg8000',))
26
xray_recorder.configure(service='test', sampling=False, context=Context())
27
xray_recorder.clear_trace_entities()
28
xray_recorder.begin_segment('name')
29
yield
30
- unpatch()
31
32
33
def test_execute_dsn_kwargs():
0 commit comments