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
ccf95cf5
Commit
ccf95cf5
authored
Sep 22, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide-zone-labels: Fix tests & pylint warnings for superfluous imports
parent
0ff439f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
tests/test_drag_and_drop_v2.py
+4
-7
No files found.
tests/test_drag_and_drop_v2.py
View file @
ccf95cf5
import
logging
import
json
import
re
import
datetime
import
time
import
json
from
webob
import
Request
from
mock
import
Mock
,
patch
from
mock
import
Mock
from
workbench.runtime
import
WorkbenchRuntime
from
xblock.runtime
import
KvsFieldData
,
DictKeyValueStore
from
nose.tools
import
(
assert_equals
,
assert_true
,
assert_false
,
assert_in
,
assert_regexp_matches
assert_in
)
import
drag_and_drop_v2
...
...
@@ -22,10 +18,11 @@ import drag_and_drop_v2
logging
.
disable
(
logging
.
DEBUG
)
def
make_request
(
body
):
def
make_request
(
body
,
method
=
'POST'
):
request
=
Request
.
blank
(
'/'
)
request
.
method
=
'POST'
request
.
body
=
body
.
encode
(
'utf-8'
)
request
.
method
=
method
return
request
...
...
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