Skip to content

Commit 5e22b48

Browse files
committed
simplify code
update snapshot update snapshot
1 parent b797749 commit 5e22b48

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ddtrace/internal/ci_visibility/api/_test.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,7 @@ def _set_known_tests_tags(self) -> None:
130130
# NOTE: The `is_new` tag is currently being set in the context of:
131131
# - Known tests enabled
132132
# - EFD (subset of known tests)
133-
if not self.is_new():
134-
return
135-
136-
if self._is_known_tests_enabled:
133+
if self._is_known_tests_enabled and self.is_new():
137134
self.set_tag(TEST_IS_NEW, self._is_new)
138135

139136
def _set_efd_tags(self) -> None:

tests/snapshots/test_api_fake_runners.test_manual_api_fake_efd_faulty_session.json

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"test.command": "manual_efd_faulty_session",
4747
"test.framework": "dd_manual_test_fw",
4848
"test.framework_version": "1.0.0",
49+
"test.is_new": "true",
4950
"test.module": "m1",
5051
"test.module_path": "",
5152
"test.name": "m1_s1_t1",
@@ -118,6 +119,7 @@
118119
"test.command": "manual_efd_faulty_session",
119120
"test.framework": "dd_manual_test_fw",
120121
"test.framework_version": "1.0.0",
122+
"test.is_new": "true",
121123
"test.module": "m1",
122124
"test.module_path": "",
123125
"test.name": "m1_s1_t2",

0 commit comments

Comments
 (0)