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
0e596dd5
Commit
0e596dd5
authored
Feb 17, 2017
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Multi-thread stub servers.
parent
e7b0c28d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
common/djangoapps/terrain/stubs/http.py
+2
-1
lms/djangoapps/courseware/features/lti.py
+0
-9
No files found.
common/djangoapps/terrain/stubs/http.py
View file @
0e596dd5
...
...
@@ -3,6 +3,7 @@ Stub implementation of an HTTP service.
"""
from
BaseHTTPServer
import
HTTPServer
,
BaseHTTPRequestHandler
from
SocketServer
import
ThreadingMixIn
import
urllib
import
urlparse
import
threading
...
...
@@ -233,7 +234,7 @@ class StubHttpRequestHandler(BaseHTTPRequestHandler, object):
self
.
send_response
(
200
)
class
StubHttpService
(
HTTPServer
,
object
):
class
StubHttpService
(
ThreadingMixIn
,
HTTPServer
,
object
):
"""
Stub HTTP service implementation.
"""
...
...
lms/djangoapps/courseware/features/lti.py
View file @
0e596dd5
...
...
@@ -363,16 +363,7 @@ def click_grade(_step, version):
css_ele
=
version_map
[
version
][
'selector'
]
css_loc
=
'#'
+
css_ele
world
.
wait_for_visible
(
css_loc
)
print
'waiting..'
# from nose.tools import set_trace; set_trace()
world
.
wait
(
8
)
print
'proceding'
# world.css_click(css_loc)
# ele = world.css_find(css_loc).first
# ele._element.send_keys(Keys.ENTER)
# world.browser.execute_script('document.getElementById("{}").click()'.format(css_ele))
world
.
css_click
(
css_loc
)
# world.css_click(css_loc)
assert
iframe
.
is_text_present
(
version_map
[
version
][
'expected_text'
])
...
...
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