Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lotif committed Nov 27, 2024
1 parent 322d677 commit c4d908a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
poetry env use '3.10'
source .venv/bin/activate
poetry install --with docs,test
coverage run -m pytest -s -vv florist/tests/integration && coverage xml && coverage report -m
coverage run -m pytest florist/tests/integration && coverage xml && coverage report -m
- name: Upload python coverage to Codecov
uses: Wandalen/[email protected]
with:
Expand Down
16 changes: 14 additions & 2 deletions florist/tests/integration/api/test_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,21 @@

async def test_train():
# Define services
server_config = uvicorn.Config("florist.api.server:app", host="localhost", port=8000, log_level="debug", timeout_graceful_shutdown=60)
server_config = uvicorn.Config(
"florist.api.server:app",
host="localhost",
port=8000,
log_level="debug",
timeout_graceful_shutdown=60,
)
server_service = TestUvicornServer(config=server_config)
client_config = uvicorn.Config("florist.api.client:app", host="localhost", port=8001, log_level="debug", timeout_graceful_shutdown=60)
client_config = uvicorn.Config(
"florist.api.client:app",
host="localhost",
port=8001,
log_level="debug",
timeout_graceful_shutdown=60,
)
client_service = TestUvicornServer(config=client_config)

# TODO figure out how to run fastapi with the test DB so we can use the fixture here
Expand Down

0 comments on commit c4d908a

Please sign in to comment.