Skip to content

Commit 5317abf

Browse files
committed
remove api ingest endpoint test (duplicate)
1 parent 552c3f8 commit 5317abf

File tree

4 files changed

+2086
-177
lines changed

4 files changed

+2086
-177
lines changed

src/server/models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313

1414
class PatternType(str, Enum):
1515
"""Enumeration for pattern types used in file filtering."""
16+
1617
INCLUDE = "include"
1718
EXCLUDE = "exclude"
1819

1920

2021
class IngestRequest(BaseModel):
2122
"""Request model for the /api/ingest endpoint.
23+
2224
Attributes
2325
----------
2426
input_text : str
@@ -58,6 +60,7 @@ def validate_pattern(cls, v: str) -> str:
5860

5961
class IngestSuccessResponse(BaseModel):
6062
"""Success response model for the /api/ingest endpoint.
63+
6164
Attributes
6265
----------
6366
result : Literal[True]
@@ -97,6 +100,7 @@ class IngestSuccessResponse(BaseModel):
97100

98101
class IngestErrorResponse(BaseModel):
99102
"""Error response model for the /api/ingest endpoint.
103+
100104
Attributes
101105
----------
102106
error : str

src/server/routers/ingest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ async def api_ingest(
5353
-------
5454
JSONResponse
5555
Success response with ingestion results or error response with appropriate HTTP status code
56+
5657
"""
5758
try:
5859
# Validate input using Pydantic model

tests/test_api_ingest.py

Lines changed: 0 additions & 177 deletions
This file was deleted.

0 commit comments

Comments
 (0)