Skip to content

Commit

Permalink
chore: fixing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
awais786 committed Jul 25, 2023
1 parent 035d49f commit c19b51e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions test_settings.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
"""
Settings for tests cases.
"""

import os
import logging
import sys
import warnings

if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'workbench.settings')

try:
from django.conf import settings # pylint: disable=wrong-import-position
from django.core.management import execute_from_command_line # pylint: disable=wrong-import-position
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ envlist = py38-django{32, 42}
allowlist_externals =
make
setenv =
DJANGO_SETTINGS_MODULE = test_settings
DJANGO_SETTINGS_MODULE = workbench.settings
deps =
django32: Django>=3.2,<4.0
django42: Django>=4.2,<4.3
Expand Down

0 comments on commit c19b51e

Please sign in to comment.