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
f3cc7bd5
Commit
f3cc7bd5
authored
Jul 27, 2016
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark some side-effecting actions so that they follow the --dry-run paver flag
parent
d8defaa4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
pavelib/utils/test/bokchoy_utils.py
+3
-0
pavelib/utils/test/suites/bokchoy_suite.py
+5
-2
No files found.
pavelib/utils/test/bokchoy_utils.py
View file @
f3cc7bd5
...
...
@@ -77,6 +77,9 @@ def wait_for_server(server, port):
)
)
if
tasks
.
environment
.
dry_run
:
return
True
attempts
=
0
server_ok
=
False
...
...
pavelib/utils/test/suites/bokchoy_suite.py
View file @
f3cc7bd5
...
...
@@ -7,7 +7,7 @@ from urllib import urlencode
from
common.test.acceptance.fixtures.course
import
CourseFixture
,
FixtureError
from
path
import
Path
as
path
from
paver.easy
import
sh
,
BuildFailure
,
cmdopts
,
task
,
needs
,
might_call
,
call_task
from
paver.easy
import
sh
,
BuildFailure
,
cmdopts
,
task
,
needs
,
might_call
,
call_task
,
dry
from
pavelib.utils.test.suites.suite
import
TestSuite
from
pavelib.utils.envs
import
Env
from
pavelib.utils.test.bokchoy_utils
import
(
...
...
@@ -233,7 +233,10 @@ class BokChoyTestSuite(TestSuite):
# Create course in order to seed forum data underneath. This is
# a workaround for a race condition. The first time a course is created;
# role permissions are set up for forums.
CourseFixture
(
'foobar_org'
,
'1117'
,
'seed_forum'
,
'seed_foo'
)
.
install
()
dry
(
"Installing course fixture for forums"
,
CourseFixture
(
'foobar_org'
,
'1117'
,
'seed_forum'
,
'seed_foo'
)
.
install
)
print
'Forums permissions/roles data has been seeded'
except
FixtureError
:
# this means it's already been done
...
...
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