Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-drag-and-drop-v2
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
OpenEdx
xblock-drag-and-drop-v2
Commits
d0f95c45
Commit
d0f95c45
authored
Aug 02, 2016
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new bok-choy, disable native firefox events
parent
30173c47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
install_test_deps.sh
+1
-0
run_tests.py
+9
-0
No files found.
install_test_deps.sh
View file @
d0f95c45
...
...
@@ -3,4 +3,5 @@
pip install
-e
git://github.com/edx/xblock-sdk.git@v0.1.2#egg
=
xblock-sdk
==
v0.1.2
cd
$VIRTUAL_ENV
/src/xblock-sdk/
&&
pip install
-r
requirements/base.txt
\
&&
pip install
-r
requirements/test.txt
&&
cd
-
pip install git+https://github.com/edx/bok-choy.git@0afb723a7b3f23de8d6f44c19d3626ee001ccc1d#egg
=
bok-choy
==
0afb723a7b3f23de8d6f44c19d3626ee001ccc1d
pip install
-r
requirements.txt
run_tests.py
View file @
d0f95c45
...
...
@@ -25,6 +25,15 @@ if __name__ == "__main__":
# Silence too verbose Django logging
logging
.
disable
(
logging
.
DEBUG
)
def
disable_native_firefox_events
(
firefox_profile
):
"""
If using Firefox, patch bok_choy to use synthetic events, which are much more reliable
See https://bugs.launchpad.net/selenium-simple-test/+bug/1242364
"""
firefox_profile
.
native_events_enabled
=
False
from
bok_choy.browser
import
FIREFOX_PROFILE_CUSTOMIZERS
FIREFOX_PROFILE_CUSTOMIZERS
.
append
(
disable_native_firefox_events
)
try
:
os
.
mkdir
(
'var'
)
except
OSError
:
...
...
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