Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
matrix:
os: [ubuntu-latest]
python-version: ['3.12']
toxenv: [py, quality, django42, django52, e2e, package]
toxenv: [quality, django42, django52, e2e, package]

steps:
- uses: actions/checkout@v4
Expand Down
7 changes: 0 additions & 7 deletions tests/e2e/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,13 @@
from pymongo.errors import ServerSelectionTimeoutError

from forum.mongo import get_database
from test_utils.client import APIClient

log = logging.getLogger(__name__)

MONGO_TIMEOUT = 60
MONGO_SLEEP_INTERVAL = 5


@pytest.fixture(name="api_client")
def fixture_api_client() -> APIClient:
"""Create an API client for testing."""
return APIClient()


def wait_for_mongodb() -> None:
"""Wait for MongoDB to start."""
db = get_database()
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ allowlist_externals =
rm
touch
deps =
Django>=5.2,<5.3
-r{toxinidir}/requirements/test.txt
commands =
make test-e2e
Expand Down
Loading