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/test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
version: "latest-known"
- run: docker compose down -v --remove-orphans
- run: docker compose up -d db mailpit
- run: docker compose up -d --wait db mailpit
- name: Migrate DB
run: uv run bash scripts/prestart.sh
working-directory: backend
Expand Down
2 changes: 1 addition & 1 deletion backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ If your stack is already up and you just want to run the tests, you can use:
docker compose exec backend bash scripts/tests-start.sh
```

The `/app/backend/scripts/tests-start.sh` script calls `pytest` after making sure that the rest of the stack is running. If you need to pass extra arguments to `pytest`, you can pass them to that command and they will be forwarded.
The `/app/backend/scripts/tests-start.sh` script calls `pytest`. If you need to pass extra arguments to `pytest`, you can pass them to that command and they will be forwarded.

For example, to stop on first error:

Expand Down
39 changes: 0 additions & 39 deletions backend/app/backend_pre_start.py

This file was deleted.

2 changes: 1 addition & 1 deletion backend/app/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from app.core.config import settings
from app.models import User, UserCreate

engine = create_engine(str(settings.DATABASE_URL))
engine = create_engine(str(settings.DATABASE_URL), pool_pre_ping=True)


# make sure all SQLModel models are imported (app.models) before initializing DB
Expand Down
39 changes: 0 additions & 39 deletions backend/app/tests_pre_start.py

This file was deleted.

1 change: 0 additions & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ dependencies = [
"fastapi[standard]>=0.141.1,<1.0.0",
"python-multipart<1.0.0,>=0.0.27",
"email-validator<3.0.0.0,>=2.1.0.post1",
"tenacity<10.0.0,>=8.2.3",
"pydantic>2.0",
"emails>=1.1.2,<2.0",
"jinja2<4.0.0,>=3.1.4",
Expand Down
3 changes: 0 additions & 3 deletions backend/scripts/prestart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
set -e
set -x

# Let the DB start
python app/backend_pre_start.py

# Run migrations
alembic upgrade head

Expand Down
2 changes: 0 additions & 2 deletions backend/scripts/tests-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
set -e
set -x

python app/tests_pre_start.py

bash scripts/test.sh "$@"
33 changes: 0 additions & 33 deletions backend/tests/scripts/test_backend_pre_start.py

This file was deleted.

33 changes: 0 additions & 33 deletions backend/tests/scripts/test_test_pre_start.py

This file was deleted.

11 changes: 0 additions & 11 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading