Skip to content

Commit

Permalink
Update test_app and async_app_client fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason-Lin committed Jan 27, 2024
1 parent 9ca9cfd commit 66dfa67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

@pytest.fixture(scope="module")
def test_app():
client = TestClient(app)
client = TestClient(app, base_url="http://localhost:8080")
yield client


@pytest.fixture(scope="module")
def async_app_client():
client = AsyncClient(app=app, base_url="http://localhost:8080/")
client = AsyncClient(app=app, base_url="http://localhost:8080")
yield client

1 comment on commit 66dfa67

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/app
   __init__.py00100% 
   config.py200100% 
   description.py50100% 
   main.py150100% 
src/app/core
   __init__.py00100% 
   models.py200100% 
   router.py17664%15–16, 20–21, 27–28
src/app/game
   __init__.py00100% 
   run.py21713836%55–60, 63–64, 66–67, 70–85, 98–100, 103–108, 110, 113–118, 121–124, 126–128, 131–132, 134–141, 143–147, 150–152, 155, 157–158, 160, 162–163, 168–180, 183–184, 186–187, 189–190, 193–198, 200–201, 204–205, 230–232, 235–237, 239–240, 242, 244–245, 247–250, 253, 256–257, 261, 282, 284–286, 288, 292, 306–308, 312–313, 316, 321–325
   settings.py200100% 
src/app/health
   __init__.py00100% 
   router.py16287%21, 26
src/static
   __init__.py4175%7
TOTAL33414755% 

Tests Skipped Failures Errors Time
6 0 💤 2 ❌ 0 🔥 1.909s ⏱️

Please sign in to comment.