-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommand.txt
More file actions
29 lines (20 loc) · 746 Bytes
/
command.txt
File metadata and controls
29 lines (20 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Start FastAPI development server on port 8001
uv run fastapi dev .\main.py --port 8001
# Initialize Alembic with async template (run once only)
uv run alembic init -t async alembic
# Create a new migration by comparing models with DB schema
uv run alembic revision --autogenerate -m "Initial Schema"
# Apply latest migrations to database
uv run alembic upgrade head
# Show current migration version applied in DB
uv run alembic current
# Show complete migration history
uv run alembic history
# Run user API tests
uv run pytest .\tests\test_users.py -v
# Run post API tests
uv run pytest .\tests\test_posts.py -v
# Run all tests
uv run pytest .\tests\ -v
# Run a single test
uv run pytest .\tests\test_posts.py::test_get_posts_empty -v