File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ def moto_env(monkeypatch):
24
24
monkeypatch .setenv ("AWS_SECRET_ACCESS_KEY" , "test" )
25
25
monkeypatch .setenv ("AWS_SECURITY_TOKEN" , "test" )
26
26
monkeypatch .setenv ("AWS_DEFAULT_REGION" , "us-west-2" )
27
+ monkeypatch .delenv ("OTEL_EXPORTER_OTLP_ENDPOINT" , raising = False )
28
+ monkeypatch .delenv ("OTEL_EXPORTER_OTLP_HEADERS" , raising = False )
27
29
28
30
29
31
@pytest .fixture
Original file line number Diff line number Diff line change 1
1
import concurrent
2
2
import functools
3
3
import unittest .mock
4
+ import uuid
4
5
5
6
import pytest
6
7
9
10
from strands .types .content import Message
10
11
11
12
13
+ @pytest .fixture (autouse = True )
14
+ def moto_autouse (moto_env ):
15
+ _ = moto_env
16
+
17
+
12
18
@pytest .fixture
13
19
def tool_handler (request ):
14
20
def handler (tool_use ):
@@ -52,10 +58,10 @@ def invalid_tool_use_ids(request):
52
58
return request .param if hasattr (request , "param" ) else []
53
59
54
60
55
- @unittest .mock .patch .object (strands .telemetry .metrics , "uuid4" , return_value = "trace1" )
56
61
@pytest .fixture
57
62
def cycle_trace ():
58
- return strands .telemetry .metrics .Trace (name = "test trace" , raw_name = "raw_name" )
63
+ with unittest .mock .patch .object (uuid , "uuid4" , return_value = "trace1" ):
64
+ return strands .telemetry .metrics .Trace (name = "test trace" , raw_name = "raw_name" )
59
65
60
66
61
67
@pytest .fixture
You can’t perform that action at this time.
0 commit comments