Skip to content

Commit

Permalink
fix(Django): run Django tests instead of FastAPI (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn authored Aug 28, 2024
1 parent 554fc3f commit 0628f62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 3 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,12 @@ docs:

checks: toml-check flake8 black-check mypy isort-check docs

tests: django-tests

tests: unit-tests integration-tests

unit-tests:
django-tests:
@echo "🥫 Running tests …"
# change project name to run in isolation
${DOCKER_COMPOSE_TEST} run --rm api poetry run pytest tests/unit

integration-tests:
@echo "🥫 Running integration tests …"
# change project name to run in isolation
${DOCKER_COMPOSE_TEST} run --rm api poetry run pytest tests/integration
( ${DOCKER_COMPOSE_TEST} down -v || true )
${DOCKER_COMPOSE_TEST} run --rm api poetry run python3 manage.py test


#------------#
Expand Down
2 changes: 1 addition & 1 deletion open_prices/users/admin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.contrib import admin

from open_prices.users.models import User, Session
from open_prices.users.models import Session, User


@admin.register(User)
Expand Down

0 comments on commit 0628f62

Please sign in to comment.