Skip to content

Commit c280aeb

Browse files
fix: add self assertion in test_unset_to_ok to fix pylint R6301
1 parent 8a33f4a commit c280aeb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opentelemetry-instrumentation/tests/test_semconv_status.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,5 @@ def test_unset_to_ok(self):
8282
server_span=False,
8383
sem_conv_opt_in_mode=_StabilityMode.DEFAULT,
8484
)
85-
span.set_status.assert_called()
85+
last_call = span.set_status.call_args[0][0]
86+
self.assertEqual(last_call.status_code, StatusCode.UNSET)

0 commit comments

Comments
 (0)