Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rogelioLpz committed May 24, 2022
1 parent 893f2e0 commit 3b1233a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions fast_agave/blueprints/rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from .decorators import copy_attributes


def get_response(code: int, description, examples: List[Dict]):
examples = {f'example_{i}': ex for i, ex in enumerate(examples)}
def get_response(code: int, description, samples: List[Dict]):
examples = {f'example_{i}': ex for i, ex in enumerate(samples)}
return {
code: {
"description": description,
Expand Down Expand Up @@ -188,7 +188,7 @@ async def delete(id: str, request: Request):
@copy_attributes(cls)
async def update(
id: str,
update_params: cls.update_validator,
update_params: cls.update_validator, # type: ignore
request: Request,
):
obj = await self.retrieve_object(cls, id)
Expand Down Expand Up @@ -255,9 +255,8 @@ async def retrieve(id: str, request: Request):
"""

# Build dynamically types for openapi documentation

class QueryResponse(BaseModel):
items: Optional[List[response_model]] = None
items: Optional[List[response_model or Any]] = None
next_page_uri: Optional[str] = None
count: Optional[int] = None

Expand Down

0 comments on commit 3b1233a

Please sign in to comment.