From 65f69a1c8764439e2fe8255aee64eef08277078e Mon Sep 17 00:00:00 2001 From: kasium <15907922+kasium@users.noreply.github.com> Date: Fri, 10 Dec 2021 11:51:18 +0100 Subject: [PATCH] Add missing context proptery to MockSpan (#6549) The property context should return a mocked context and not a regular one --- stubs/opentracing/opentracing/mocktracer/span.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stubs/opentracing/opentracing/mocktracer/span.pyi b/stubs/opentracing/opentracing/mocktracer/span.pyi index 0a9090913..da419aa7a 100644 --- a/stubs/opentracing/opentracing/mocktracer/span.pyi +++ b/stubs/opentracing/opentracing/mocktracer/span.pyi @@ -25,6 +25,8 @@ class MockSpan(Span): ) -> None: ... @property def tracer(self) -> MockTracer: ... + @property + def context(self) -> SpanContext: ... def set_operation_name(self: Self, operation_name: str) -> Self: ... def set_tag(self: Self, key: str, value: str | bool | int | float) -> Self: ... def log_kv(self: Self, key_values: dict[str, Any], timestamp: float | None = ...) -> Self: ...