Skip to content

Commit

Permalink
mock server
Browse files Browse the repository at this point in the history
  • Loading branch information
dtam committed Sep 19, 2024
1 parent 1442c54 commit a2d9921
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions guardrails_api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

from starlette.middleware.base import BaseHTTPMiddleware


class RequestInfoMiddleware(BaseHTTPMiddleware):
async def dispatch(self, request: Request, call_next):
tracer = trace.get_tracer(__name__)
Expand Down
2 changes: 2 additions & 0 deletions tests/cli/test_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ def test_start(mocker):
"guardrails_api.cli.start.create_app", return_value=mock_app
)

mocker.patch("uvicorn.run")

from guardrails_api.cli.start import start

# pg enabled
Expand Down

0 comments on commit a2d9921

Please sign in to comment.