Skip to content

Commit 5c040b2

Browse files
aschleanclaude
andcommitted
fix[format]: format instrumentation test file
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f5eda6f commit 5c040b2

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tests/core/test_instrumentation.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@ def test_init_telemetry_with_golf_platform_auto_config(self, monkeypatch):
5656
assert provider is not None
5757
assert os.environ.get("OTEL_TRACES_EXPORTER") == "otlp_http"
5858
from golf import _endpoints
59-
assert (
60-
os.environ.get("OTEL_EXPORTER_OTLP_ENDPOINT")
61-
== _endpoints.OTEL_ENDPOINT
62-
)
59+
60+
assert os.environ.get("OTEL_EXPORTER_OTLP_ENDPOINT") == _endpoints.OTEL_ENDPOINT
6361

6462
def test_init_telemetry_with_headers(self, monkeypatch):
6563
"""Test telemetry initialization with custom headers."""
@@ -339,10 +337,8 @@ def test_golf_platform_integration_workflow(self, monkeypatch):
339337
# Verify auto-configuration
340338
assert os.environ.get("OTEL_TRACES_EXPORTER") == "otlp_http"
341339
from golf import _endpoints
342-
assert (
343-
os.environ.get("OTEL_EXPORTER_OTLP_ENDPOINT")
344-
== _endpoints.OTEL_ENDPOINT
345-
)
340+
341+
assert os.environ.get("OTEL_EXPORTER_OTLP_ENDPOINT") == _endpoints.OTEL_ENDPOINT
346342
assert "X-Golf-Key=golf_test_key_123" in os.environ.get("OTEL_EXPORTER_OTLP_HEADERS", "")
347343

348344
def test_mixed_component_instrumentation(self):

0 commit comments

Comments
 (0)