Skip to content

Commit c66aa4a

Browse files
Fix code review feedback: move imports to top of file
Co-authored-by: sergioescalera <[email protected]>
1 parent 69a79c9 commit c66aa4a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/observability/core/test_agent365_exporter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) Microsoft. All rights reserved.
22

33
import json
4+
import os
45
import unittest
56
from unittest.mock import Mock, patch
67

@@ -388,7 +389,6 @@ def test_export_uses_domain_override_when_env_var_set(self):
388389
"""Test that domain override is used when A365_OBSERVABILITY_DOMAIN_OVERRIDE is set."""
389390
# Arrange
390391
override_domain = "override.example.com"
391-
import os
392392

393393
os.environ["A365_OBSERVABILITY_DOMAIN_OVERRIDE"] = override_domain
394394

@@ -427,8 +427,6 @@ def test_export_uses_domain_override_when_env_var_set(self):
427427
def test_export_uses_default_domain_when_no_override(self):
428428
"""Test that default domain resolution is used when no override is set."""
429429
# Arrange
430-
import os
431-
432430
# Ensure override is not set
433431
if "A365_OBSERVABILITY_DOMAIN_OVERRIDE" in os.environ:
434432
del os.environ["A365_OBSERVABILITY_DOMAIN_OVERRIDE"]

0 commit comments

Comments
 (0)