Skip to content

Commit aee85c2

Browse files
committed
moved to the right location
1 parent 8ed1a38 commit aee85c2

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

packages/pytest-simcore/src/pytest_simcore/fastapi.py renamed to packages/pytest-simcore/src/pytest_simcore/helpers/fastapi.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
from typing import Any, TypeVar
66

77
import httpx
8-
from fastapi import FastAPI
98
from models_library.generics import Envelope
109
from pydantic import TypeAdapter
1110
from servicelib.aiohttp import status
1211
from servicelib.status_codes_utils import get_code_display_name, is_error
13-
from yarl import URL
1412

1513
T = TypeVar("T")
1614

@@ -84,11 +82,3 @@ def _do_assert_error(
8482
assert expected_error_code in codes
8583

8684
return data, error
87-
88-
89-
def url_from_operation_id(
90-
client: httpx.AsyncClient, app: FastAPI, operation_id: str, **path_params
91-
) -> URL:
92-
return URL(f"{client.base_url}").with_path(
93-
app.url_path_for(operation_id, **path_params)
94-
)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import httpx
2+
from fastapi import FastAPI
3+
from yarl import URL
4+
5+
6+
def url_from_operation_id(
7+
client: httpx.AsyncClient, app: FastAPI, operation_id: str, **path_params
8+
) -> URL:
9+
return URL(f"{client.base_url}").with_path(
10+
app.url_path_for(operation_id, **path_params)
11+
)

0 commit comments

Comments
 (0)