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):
2424 monkeypatch .setenv ("AWS_SECRET_ACCESS_KEY" , "test" )
2525 monkeypatch .setenv ("AWS_SECURITY_TOKEN" , "test" )
2626 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 )
2729
2830
2931@pytest .fixture
Original file line number Diff line number Diff line change 11import concurrent
22import functools
33import unittest .mock
4+ import uuid
45
56import pytest
67
910from strands .types .content import Message
1011
1112
13+ @pytest .fixture (autouse = True )
14+ def moto_autouse (moto_env ):
15+ _ = moto_env
16+
17+
1218@pytest .fixture
1319def tool_handler (request ):
1420 def handler (tool_use ):
@@ -52,10 +58,10 @@ def invalid_tool_use_ids(request):
5258 return request .param if hasattr (request , "param" ) else []
5359
5460
55- @unittest .mock .patch .object (strands .telemetry .metrics , "uuid4" , return_value = "trace1" )
5661@pytest .fixture
5762def 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" )
5965
6066
6167@pytest .fixture
You can’t perform that action at this time.
0 commit comments