Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
33b9ee81
Commit
33b9ee81
authored
Jul 23, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix import error caused by naming a package "selenium"
Install bok-choy
parent
a03196c7
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
7 additions
and
3 deletions
+7
-3
requirements/test.txt
+1
-1
settings/test.py
+1
-0
test/acceptance/README.rst
+1
-1
test/acceptance/__init__.py
+0
-0
test/acceptance/auto_auth.py
+0
-0
test/acceptance/pages.py
+0
-1
test/acceptance/screenshots/.gitkeep
+0
-0
test/acceptance/tests.py
+4
-0
No files found.
requirements/test.txt
View file @
33b9ee81
# Grab everything in base requirements
-r base.txt
-r test-acceptance.txt
ddt==0.8.0
django-nose==1.2
...
...
settings/test.py
View file @
33b9ee81
...
...
@@ -14,6 +14,7 @@ TEST_APPS = (
# Configure nose
NOSE_ARGS
=
[
"-a '!acceptance'"
,
'--with-coverage'
,
'--cover-package='
+
","
.
join
(
TEST_APPS
),
'--cover-branches'
,
...
...
test/
selenium
/README.rst
→
test/
acceptance
/README.rst
View file @
33b9ee81
...
...
@@ -22,6 +22,6 @@ To use the tests:
.. code:: bash
cd edx-ora2/test/
selenium
cd edx-ora2/test/
acceptance
export BASE_URL=https://{USER}:{PASSWORD}@example.com
python tests.py
test/
selenium
/__init__.py
→
test/
acceptance
/__init__.py
View file @
33b9ee81
File moved
test/
selenium
/auto_auth.py
→
test/
acceptance
/auto_auth.py
View file @
33b9ee81
File moved
test/
selenium
/pages.py
→
test/
acceptance
/pages.py
View file @
33b9ee81
...
...
@@ -6,7 +6,6 @@ from bok_choy.promise import EmptyPromise
import
os
BASE_URL
=
os
.
environ
.
get
(
'BASE_URL'
)
assert
BASE_URL
is
not
None
,
'No base URL specified - please set the `BASE_URL` environment variable'
class
PageConfigurationError
(
Exception
):
...
...
test/
selenium
/screenshots/.gitkeep
→
test/
acceptance
/screenshots/.gitkeep
View file @
33b9ee81
File moved
test/
selenium
/tests.py
→
test/
acceptance
/tests.py
View file @
33b9ee81
...
...
@@ -5,6 +5,7 @@ import os
import
unittest
import
time
from
functools
import
wraps
from
nose.plugins.attrib
import
attr
from
bok_choy.web_app_test
import
WebAppTest
from
bok_choy.promise
import
BrokenPromise
from
auto_auth
import
AutoAuthPage
...
...
@@ -86,6 +87,7 @@ class SelfAssessmentTest(OpenAssessmentTest):
super
(
SelfAssessmentTest
,
self
)
.
setUp
(
'self_only'
)
@retry
()
@attr
(
'acceptance'
)
def
test_self_assessment
(
self
):
# Submit a response
self
.
auto_auth_page
.
visit
()
...
...
@@ -115,6 +117,7 @@ class PeerAssessmentTest(OpenAssessmentTest):
super
(
PeerAssessmentTest
,
self
)
.
setUp
(
'peer_only'
)
@retry
()
@attr
(
'acceptance'
)
def
test_peer_assessment
(
self
):
# Create a submission for the first student, so there's
# at least one submission to assess.
...
...
@@ -150,6 +153,7 @@ class StudentTrainingTest(OpenAssessmentTest):
super
(
StudentTrainingTest
,
self
)
.
setUp
(
'student_training'
)
@retry
()
@attr
(
'acceptance'
)
def
test_student_training
(
self
):
# Create a submission so we can get to student training
self
.
auto_auth_page
.
visit
()
...
...
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