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
ac1e4643
Commit
ac1e4643
authored
Oct 17, 2016
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add enable-migrations parameter for python unit tests
parent
2f868e5e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
docs/en_us/internal/testing.rst
+10
-0
pavelib/tests.py
+6
-0
No files found.
docs/en_us/internal/testing.rst
View file @
ac1e4643
...
...
@@ -179,6 +179,16 @@ To run cms python tests without ``collectstatic`` use this command.
paver test_system -s cms --fasttest
For the sake of speed, by default the python unit test database tables
are created directly from apps' models. If you want to run the tests
against a database created by applying the migrations instead, use the
``--enable-migrations`` option.
::
paver test_system -s lms --enable-migrations
To run a single django test class use this command.
::
...
...
pavelib/tests.py
View file @
ac1e4643
...
...
@@ -46,6 +46,12 @@ __test__ = False # do not collect
dest
=
'disable_migrations'
,
help
=
"Create tables directly from apps' models. Can also be used by exporting DISABLE_MIGRATIONS=1."
),
make_option
(
'--enable-migrations'
,
action
=
'store_false'
,
dest
=
'disable_migrations'
,
help
=
"Create tables by applying migrations."
),
(
"fail_fast"
,
None
,
"deprecated in favor of fail-fast"
),
(
"test_id="
,
None
,
"deprecated in favor of test-id"
),
(
'cov_args='
,
None
,
'deprecated in favor of cov-args'
),
...
...
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