Skip to content

Commit ff1ddc3

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/main'
2 parents cf3c86c + 8f287e1 commit ff1ddc3

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

test_output.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
============================= test session starts ==============================
2+
platform linux -- Python 3.12.12, pytest-9.0.2, pluggy-1.6.0 -- /app/.venv/bin/python
3+
cachedir: .pytest_cache
4+
hypothesis profile 'default'
5+
rootdir: /app
6+
configfile: pyproject.toml
7+
plugins: schemathesis-4.9.4, hypothesis-6.151.3, asyncio-1.3.0, anyio-4.12.1
8+
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
9+
collecting ... collected 67 items
10+
11+
tests/api/test_schemathesis.py::test_pwa_api_schema[GET /api/v1/pwa/dashboard/stats] PASSED [ 1%]
12+
tests/api/test_schemathesis.py::test_pwa_api_schema[GET /api/v1/pwa/dashboard/recent-activity]

tests/api/test_schemathesis.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,12 @@ async def mock_user():
8181
schema = schemathesis.openapi.from_dict(raw_schema)
8282
schema.app = app
8383
schema.base_url = "http://localhost/api/v1"
84+
# Disable coverage phase to speed up collection
85+
schema.config.phases.coverage.enabled = False
8486
else:
8587
schema = schemathesis.openapi.from_asgi("/openapi.json", app)
88+
# Disable coverage phase to speed up collection
89+
schema.config.phases.coverage.enabled = False
8690

8791
@pytest.mark.schemathesis
8892
@schema.include(path_regex="^/api/v1/pwa/").parametrize()

tests/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
os.environ["CLERK_JWKS_URL"] = "https://dummy.clerk.accounts.dev/.well-known/jwks.json"
2020
os.environ["CLERK_WEBHOOK_SECRET"] = "whsec_dummy"
2121

22+
# PostHog Settings for tests
23+
os.environ["POSTHOG_API_KEY"] = "dummy_key"
24+
os.environ["POSTHOG_HOST"] = "https://dummy.host"
25+
2226
import pytest
2327
from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession
2428
from sqlalchemy.orm import sessionmaker

0 commit comments

Comments
 (0)