Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mpasternak committed Jul 9, 2023
1 parent e91bfa9 commit d14e189
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 27 deletions.
1 change: 0 additions & 1 deletion password_policies/tests/__init__.py

This file was deleted.

2 changes: 2 additions & 0 deletions password_policies/tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,5 @@
SESSION_SERIALIZER = "django.contrib.sessions.serializers.PickleSerializer"

MEDIA_URL = "/media/somewhere/"

DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
5 changes: 4 additions & 1 deletion password_policies/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from django.conf.urls import url
try:
from django.conf.urls import url
except ImportError:
from django.urls import re_path as url

try:
# patterns was deprecated in Django 1.8
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@
"Topic :: Utilities",
],
install_requires=install_requires,
test_suite="tests.runtests",
)
21 changes: 0 additions & 21 deletions tests.py

This file was deleted.

8 changes: 5 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ deps =
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django22: Django>=2.2,<2.3
coverage

commands = coverage run -a setup.py test
pytest
pytest-django
pytest-cov
develop = true
commands = pytest --cov password_policies --ds=password_policies.tests.test_settings password_policies/tests/ -s

0 comments on commit d14e189

Please sign in to comment.