Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,11 @@
SpanExporter,
SpanExportResult,
)
from opentelemetry.test.mock_test_classes import IterEntryPoint

logger = getLogger(__name__)


class IterEntryPoint:
def __init__(self, name, class_type):
self.name = name
self.class_type = class_type

def load(self):
return self.class_type


# The below tests use this test SpanExporter and Spans, but are testing the
# underlying behavior in the mixin. A MetricExporter or LogExporter could
# just as easily be used.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@
InstrumentationScope as SDKInstrumentationScope,
)
from opentelemetry.test.metrictestutil import _generate_sum

from .._common import IterEntryPoint
from opentelemetry.test.mock_test_classes import IterEntryPoint

OS_ENV_ENDPOINT = "os.env.base"
OS_ENV_CERTIFICATE = "os/env/base.crt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,14 @@
)
from opentelemetry.sdk.resources import Resource as SDKResource
from opentelemetry.sdk.util.instrumentation import InstrumentationScope
from opentelemetry.test.mock_test_classes import IterEntryPoint
from opentelemetry.trace import (
NonRecordingSpan,
SpanContext,
TraceFlags,
set_span_in_context,
)

from ._common import IterEntryPoint

ENV_ENDPOINT = "http://localhost.env:8080/"
ENV_CERTIFICATE = "/etc/base.crt"
ENV_CLIENT_CERTIFICATE = "/etc/client-cert.pem"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
)
from opentelemetry.sdk.trace import _Span
from opentelemetry.sdk.trace.export import SpanExportResult

from ._common import IterEntryPoint
from opentelemetry.test.mock_test_classes import IterEntryPoint

OS_ENV_ENDPOINT = "os.env.base"
OS_ENV_CERTIFICATE = "os/env/base.crt"
Expand Down
10 changes: 1 addition & 9 deletions opentelemetry-sdk/tests/test_configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
SamplingResult,
TraceIdRatioBased,
)
from opentelemetry.test.mock_test_classes import IterEntryPoint
from opentelemetry.trace import Link, SpanKind
from opentelemetry.trace.span import TraceState
from opentelemetry.util.types import Attributes
Expand Down Expand Up @@ -307,15 +308,6 @@ def generate_trace_id(self):
pass


class IterEntryPoint:
def __init__(self, name, class_type):
self.name = name
self.class_type = class_type

def load(self):
return self.class_type


class TestTraceInit(TestCase):
def setUp(self):
super()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# pylint: disable=protected-access


class IterEntryPoint:
def __init__(self, name, class_type):
Expand Down
Loading