Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
50ebfaf7
Commit
50ebfaf7
authored
Dec 05, 2017
by
John Eskew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add -Wd when running pytest to turn on deprecation warnings in Django 1.11
parent
5dec436f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pavelib/utils/test/suites/pytest_suite.py
+2
-2
tox.ini
+1
-1
No files found.
pavelib/utils/test/suites/pytest_suite.py
View file @
50ebfaf7
...
...
@@ -134,7 +134,7 @@ class SystemTestSuite(PytestSuite):
if
self
.
django_toxenv
:
cmd
=
[
'tox'
,
'-e'
,
self
.
django_toxenv
,
'--'
]
else
:
cmd
=
[
'pytest'
]
cmd
=
[
'pyt
hon'
,
'-Wd'
,
'-m'
,
'pyt
est'
]
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
=
[
'pyt
hon'
,
'-Wd'
,
'-m'
,
'pyt
est'
]
cmd
.
extend
([
"-p"
,
"no:randomly"
,
...
...
tox.ini
View file @
50ebfaf7
...
...
@@ -48,4 +48,4 @@ deps =
-rrequirements/edx-sandbox/post.txt
commands
=
pytest
{posargs}
pyt
hon
-Wd
-m
pyt
est
{posargs}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment