Skip to content

Commit 668e76a

Browse files
committed
refactor tests imports
1 parent b4a4d6a commit 668e76a

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

lite_bootstrap/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from lite_bootstrap.instruments.logging_instrument import LoggingInstrument
1818
from lite_bootstrap.instruments.opentelemetry_instrument import OpenTelemetryInstrument
1919
from lite_bootstrap.instruments.sentry_instrument import SentryInstrument
20+
from lite_bootstrap.service_config import ServiceConfig
2021

2122

2223
__all__ = [
@@ -35,4 +36,5 @@
3536
"LoggingInstrument",
3637
"OpenTelemetryInstrument",
3738
"SentryInstrument",
39+
"ServiceConfig",
3840
]

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from fastapi import FastAPI
66
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor # type: ignore[attr-defined]
77

8-
from lite_bootstrap.service_config import ServiceConfig
8+
from lite_bootstrap import ServiceConfig
99

1010

1111
class CustomInstrumentor(BaseInstrumentor): # type: ignore[misc]

tests/test_fastapi_bootstrap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
from starlette import status
55
from starlette.testclient import TestClient
66

7-
from lite_bootstrap.bootstrappers.fastapi_bootstrapper import (
7+
from lite_bootstrap import (
88
FastAPIBootstrapper,
99
FastAPIHealthChecksInstrument,
1010
FastAPILoggingInstrument,
1111
FastAPIOpenTelemetryInstrument,
1212
FastAPISentryInstrument,
13+
ServiceConfig,
1314
)
14-
from lite_bootstrap.service_config import ServiceConfig
1515
from tests.conftest import CustomInstrumentor
1616

1717

tests/test_free_bootstrap.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import structlog
22
from opentelemetry.sdk.trace.export import ConsoleSpanExporter
33

4-
from lite_bootstrap.bootstrappers.free_bootstrapper import FreeBootstrapper
5-
from lite_bootstrap.instruments.logging_instrument import LoggingInstrument
6-
from lite_bootstrap.instruments.opentelemetry_instrument import OpenTelemetryInstrument
7-
from lite_bootstrap.instruments.sentry_instrument import SentryInstrument
8-
from lite_bootstrap.service_config import ServiceConfig
4+
from lite_bootstrap import FreeBootstrapper, LoggingInstrument, OpenTelemetryInstrument, SentryInstrument, ServiceConfig
95
from tests.conftest import CustomInstrumentor
106

117

tests/test_litestar_bootstrap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
from litestar.testing import TestClient
55
from opentelemetry.sdk.trace.export import ConsoleSpanExporter
66

7-
from lite_bootstrap.bootstrappers.litestar_bootstrapper import (
7+
from lite_bootstrap import (
88
LitestarBootstrapper,
99
LitestarHealthChecksInstrument,
1010
LitestarLoggingInstrument,
1111
LitestarOpenTelemetryInstrument,
1212
LitestarSentryInstrument,
13+
ServiceConfig,
1314
)
14-
from lite_bootstrap.service_config import ServiceConfig
1515
from tests.conftest import CustomInstrumentor
1616

1717

0 commit comments

Comments
 (0)