Skip to content

Commit

Permalink
tag renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
vitor-de-araujo committed Feb 6, 2025
1 parent 3b5adcb commit 7522a5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
8 changes: 0 additions & 8 deletions ddtrace/internal/ci_visibility/recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,14 +463,6 @@ def is_test_management_enabled(cls):
os.getenv("DD_TEST_MANAGEMENT_ENABLED", default=True)
)

@classmethod
def should_skip_quarantined_tests(cls):
if cls._instance is None:
return False
return cls._instance._api_settings.quarantine.skip_quarantined_tests and asbool(
os.getenv("DD_TEST_MANAGEMENT_ENABLED", default=True)
)

@classmethod
def should_collect_coverage(cls):
return cls._instance._api_settings.coverage_enabled or asbool(
Expand Down
2 changes: 1 addition & 1 deletion tests/ci_visibility/test_quarantine.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ def test_quarantine_tags_set(self):
session.finish()

assert test._span.get_tag("test.management.is_quarantined") == "true"
assert session._span.get_tag("test_session.quarantine.enabled") == "true"
assert session._span.get_tag("test.test_management.enabled") == "true"
4 changes: 2 additions & 2 deletions tests/contrib/pytest/test_pytest_quarantine.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def test_quarantine_spans_without_atr(self):
spans = self.pop_spans()

[session_span] = _get_spans_from_list(spans, "session")
assert session_span.get_tag("test_session.quarantine.enabled") == "true"
assert session_span.get_tag("test.test_management.enabled") == "true"

[module_span] = _get_spans_from_list(spans, "module")
[suite_span_fail_quarantined] = _get_spans_from_list(spans, "suite", "test_fail_quarantined.py")
Expand Down Expand Up @@ -296,7 +296,7 @@ def test_quarantine_spans_with_atr(self):
spans = self.pop_spans()

[session_span] = _get_spans_from_list(spans, "session")
assert session_span.get_tag("test_session.quarantine.enabled") == "true"
assert session_span.get_tag("test.test_management.enabled") == "true"

[module_span] = _get_spans_from_list(spans, "module")
[suite_span_fail_quarantined] = _get_spans_from_list(spans, "suite", "test_fail_quarantined.py")
Expand Down

0 comments on commit 7522a5f

Please sign in to comment.