Skip to content

Commit

Permalink
fix import_error
Browse files Browse the repository at this point in the history
  • Loading branch information
Станислав Михайлов committed Sep 20, 2024
1 parent a1d4145 commit 0a5fdd6
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Empty file.
2 changes: 1 addition & 1 deletion httptoolkitopentelemetry/example/client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import asyncio

from kontur.httptoolkitcore import AsyncService, Service
from httptoolkit import AsyncService, Service
from httptoolkit.transport import HttpxTransport, AsyncHttpxTransport
from httptoolkitopentelemetry import HttpxTransportInstrumentor

Expand Down
2 changes: 1 addition & 1 deletion httptoolkitopentelemetry/example/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ opentelemetry-api
opentelemetry-sdk
opentelemetry-exporter-otlp-proto-grpc

kontur_http_toolkit_core[opentelemetry]~=1.0
http_toolkit[opentelemetry]~=1.0
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ non_interactive = true
exclude = ["env", "venv", "build"]

[tool.setuptools.packages.find]
include = ["httptoolkit.*","httptoolkitopentelemetry.*"]
include = ["*"]

[tool.setuptools.dynamic]
version = {attr = "httptoolkit._version.__version__"}
4 changes: 2 additions & 2 deletions tests/httptoolkit/response/test_stream_error_response.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest
from pytest_httpx import HTTPXMock

from kontur.httptoolkitcore import HttpxService
from kontur.httptoolkitcore.errors import ServiceError
from httptoolkit import HttpxService
from httptoolkit.errors import ServiceError


class MyService(HttpxService):
Expand Down
2 changes: 1 addition & 1 deletion tests/httptoolkit/service/test_service_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from kontur.httptoolkitcore.errors import ServiceError
from httptoolkit.errors import ServiceError


def test_str_when_response_is_not_set(get_sent_request):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ async def test_logging_request(

capture.check(
(
"kontur.httptoolkit.transport._httpx._async",
"httptoolkit.transport._httpx._async",
"INFO",
"Sending POST https://example.com:4321/put/some/data/here?please=True&carefully=True (body: 46)",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def test_logging_request(

capture.check(
(
"kontur.httptoolkit.transport._httpx._sync",
"httptoolkit.transport._httpx._sync",
"INFO",
"Sending POST https://example.com:4321/put/some/data/here?please=True&carefully=True (body: 46)",
)
Expand Down

0 comments on commit 0a5fdd6

Please sign in to comment.