Unverified Commit db2be76a by John Eskew Committed by GitHub

Merge pull request #16799 from edx/jeskew/turn_on_django_deprecation_warnings

Turn on deprecation warnings in Django 1.11
parents 941bc5cf 4bbc3aa3
...@@ -41,6 +41,7 @@ class TestPaverBokChoyCmd(unittest.TestCase): ...@@ -41,6 +41,7 @@ class TestPaverBokChoyCmd(unittest.TestCase):
"SELENIUM_DRIVER_LOG_DIR='{}/test_root/log{}'".format(REPO_DIR, shard_str), "SELENIUM_DRIVER_LOG_DIR='{}/test_root/log{}'".format(REPO_DIR, shard_str),
"VERIFY_XSS='{}'".format(verify_xss), "VERIFY_XSS='{}'".format(verify_xss),
"python", "python",
"-Wd",
"-m", "-m",
"pytest", "pytest",
"{}/common/test/acceptance/{}".format(REPO_DIR, name), "{}/common/test/acceptance/{}".format(REPO_DIR, name),
......
...@@ -341,7 +341,8 @@ class BokChoyTestSuite(TestSuite): ...@@ -341,7 +341,8 @@ class BokChoyTestSuite(TestSuite):
cmd.append("--rcfile={}".format(self.coveragerc)) cmd.append("--rcfile={}".format(self.coveragerc))
else: else:
cmd += [ cmd += [
"python" "python",
"-Wd",
] ]
cmd += [ cmd += [
"-m", "-m",
......
...@@ -134,7 +134,7 @@ class SystemTestSuite(PytestSuite): ...@@ -134,7 +134,7 @@ class SystemTestSuite(PytestSuite):
if self.django_toxenv: if self.django_toxenv:
cmd = ['tox', '-e', self.django_toxenv, '--'] cmd = ['tox', '-e', self.django_toxenv, '--']
else: else:
cmd = ['pytest'] cmd = ['python', '-Wd', '-m', 'pytest']
cmd.extend([ cmd.extend([
'--ds={}'.format('{}.envs.{}'.format(self.root, self.settings)), '--ds={}'.format('{}.envs.{}'.format(self.root, self.settings)),
"--junitxml={}".format(self.xunit_report), "--junitxml={}".format(self.xunit_report),
...@@ -223,7 +223,7 @@ class LibTestSuite(PytestSuite): ...@@ -223,7 +223,7 @@ class LibTestSuite(PytestSuite):
if self.django_toxenv: if self.django_toxenv:
cmd = ['tox', '-e', self.django_toxenv, '--'] cmd = ['tox', '-e', self.django_toxenv, '--']
else: else:
cmd = ['pytest'] cmd = ['python', '-Wd', '-m', 'pytest']
cmd.extend([ cmd.extend([
"-p", "-p",
"no:randomly", "no:randomly",
......
...@@ -48,4 +48,4 @@ deps = ...@@ -48,4 +48,4 @@ deps =
-rrequirements/edx-sandbox/post.txt -rrequirements/edx-sandbox/post.txt
commands = commands =
pytest {posargs} python -Wd -m pytest {posargs}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment