Skip to content

Commit 7395edb

Browse files
committed
fix tests
1 parent 813fe51 commit 7395edb

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

tests/telemetry/test_data.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from ddtrace.internal.telemetry.data import get_application
1414
from ddtrace.internal.telemetry.data import get_host_info
1515
from ddtrace.internal.telemetry.data import get_hostname
16-
from tests.utils import process_tag_reload
1716

1817

1918
def test_get_application():
@@ -44,18 +43,12 @@ def test_get_application_with_values():
4443
assert application["env"] == "staging"
4544

4645

46+
@pytest.mark.subprocess(env={"DD_EXPERIMENTAL_PROPAGATE_PROCESS_TAGS_ENABLED": "True"})
4747
def test_get_application_with_process_tags():
48-
from ddtrace.internal.settings._config import config
48+
from ddtrace.internal.telemetry.data import get_application
4949

50-
try:
51-
config._process_tags_enabled = True
52-
process_tag_reload()
53-
54-
application = get_application("", "", "")
55-
assert "process_tags" in application
56-
finally:
57-
config._process_tags_enabled = False
58-
process_tag_reload()
50+
application = get_application("", "", "")
51+
assert "process_tags" in application
5952

6053

6154
def test_application_with_setenv(run_python_code_in_subprocess, monkeypatch):

0 commit comments

Comments
 (0)