Merge pull request #16799 from edx/jeskew/turn_on_django_deprecation_warnings

Turn on deprecation warnings in Django 1.11
This commit is contained in:
John Eskew
2017-12-06 16:55:52 -05:00
committed by GitHub
4 changed files with 6 additions and 4 deletions

View File

@@ -41,6 +41,7 @@ class TestPaverBokChoyCmd(unittest.TestCase):
"SELENIUM_DRIVER_LOG_DIR='{}/test_root/log{}'".format(REPO_DIR, shard_str),
"VERIFY_XSS='{}'".format(verify_xss),
"python",
"-Wd",
"-m",
"pytest",
"{}/common/test/acceptance/{}".format(REPO_DIR, name),

View File

@@ -341,7 +341,8 @@ class BokChoyTestSuite(TestSuite):
cmd.append("--rcfile={}".format(self.coveragerc))
else:
cmd += [
"python"
"python",
"-Wd",
]
cmd += [
"-m",

View File

@@ -134,7 +134,7 @@ class SystemTestSuite(PytestSuite):
if self.django_toxenv:
cmd = ['tox', '-e', self.django_toxenv, '--']
else:
cmd = ['pytest']
cmd = ['python', '-Wd', '-m', 'pytest']
cmd.extend([
'--ds={}'.format('{}.envs.{}'.format(self.root, self.settings)),
"--junitxml={}".format(self.xunit_report),
@@ -223,7 +223,7 @@ class LibTestSuite(PytestSuite):
if self.django_toxenv:
cmd = ['tox', '-e', self.django_toxenv, '--']
else:
cmd = ['pytest']
cmd = ['python', '-Wd', '-m', 'pytest']
cmd.extend([
"-p",
"no:randomly",

View File

@@ -48,4 +48,4 @@ deps =
-rrequirements/edx-sandbox/post.txt
commands =
pytest {posargs}
python -Wd -m pytest {posargs}