Commit 594752fc authored by Flavio TARSETTI's avatar Flavio TARSETTI

Merge branch 'make_test_compatible_with_django3' into 'master'

Make beat/beat.web> setup compatible with Django 3

See merge request !101
parents d3680a4c 387d94c1
Pipeline #42517 passed with stages
in 10 minutes and 37 seconds
......@@ -58,6 +58,8 @@ if platform:
if platform.startswith("django://"):
# sets up django infrastructure, preloads test data
os.environ.setdefault("DJANGO_SETTINGS_MODULE", platform[9:])
from distutils.version import LooseVersion
import django
......@@ -65,7 +67,14 @@ if platform:
# presets django database for tests
from import call_command
call_command("install", "test", interactive=False, verbose=1)
if LooseVersion(
) >= LooseVersion("3"):
kwargs = dict(verbosity=1)
kwargs = dict(verbose=1)
call_command("install", "test", **kwargs)
disconnected = False
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment