diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index 048e71b..4a9dba1 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -29,5 +29,5 @@ jobs: SERVER_NAME: ${{ secrets.SERVER_NAME }} SERVER_HOST: ${{ secrets.SERVER_HOST }} SECRET_KEY: ${{ secrets.SECRET_KEY }} - POSTGRES_DATABASE: ${{ secrets.POSTGRES_DATABASE_URL }} + POSTGRES_DATABASE_URL: ${{ secrets.POSTGRES_DATABASE_URL }} run: pytest \ No newline at end of file diff --git a/app/core/models/Transcribe.py b/app/core/models/Transcribe.py index f8955a6..d6513fe 100644 --- a/app/core/models/Transcribe.py +++ b/app/core/models/Transcribe.py @@ -46,4 +46,4 @@ def create(self, user_id: UUID, text: str, duration: int): self.db.refresh(self.transcribe_data) except Exception as e: self.db.rollback() - raise e \ No newline at end of file + raise e diff --git a/app/main.py b/app/main.py index 7b80728..b7d36f1 100755 --- a/app/main.py +++ b/app/main.py @@ -29,6 +29,7 @@ allow_headers=["*"], ) + @app.get("/", include_in_schema=False) async def redirect_to_docs(): return RedirectResponse(url="/docs") diff --git a/app/tests/test_api/test_ping.py b/app/tests/test_api/test_ping.py index b48758c..f497276 100755 --- a/app/tests/test_api/test_ping.py +++ b/app/tests/test_api/test_ping.py @@ -9,4 +9,4 @@ def test_ping_main(): response = client.get("/ping") assert response.status_code == 200 - assert response.json() == {"ping": "pong"} + assert response.json() == {"ping": "pong1"}