Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lociii committed Jun 27, 2024
1 parent aa8d9a6 commit 1efcf6d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
run: pip install -e .

- name: Run tests and coverage
run: coverage run --source=django_scrubber runtests.py
run: coverage run --source=django_scrubber manage.py test
env:
DATABASE_ENGINE: ${{ matrix.database }}

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ services:
app:
build: .
user: app
command: /app/manage.py test
command: coverage run --source=django_scrubber manage.py test
volumes:
- .:/app
environment:
Expand Down
24 changes: 0 additions & 24 deletions runtests.py

This file was deleted.

5 changes: 1 addition & 4 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@

SITE_ID = 1

if django.VERSION >= (1, 10):
MIDDLEWARE = ()
else:
MIDDLEWARE_CLASSES = ()
MIDDLEWARE = ()

DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"

0 comments on commit 1efcf6d

Please sign in to comment.