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
35e17d03
Commit
35e17d03
authored
Jan 22, 2014
by
Stephen Sanchez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small changes to fix a few broken BDD tests
parent
e01e812c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
peer_grading/features/review_time_window.feature
+9
-9
peer_grading/features/review_time_window.py
+3
-3
settings/test.py
+2
-2
No files found.
peer_grading/features/review_time_window.feature
View file @
35e17d03
Feature
:
An author can configure the peer review start and end dates
As an author
I can configure the date when a question is open for peer review
I can configure the date when a question is closed for peer review
As an author
I can configure the date when a question is open for peer review
I can configure the date when a question is closed for peer review
Scenario
:
An
author can configure the peer review start and end dates
Given
:
I
am an author
And
:
I
configure a start date in the
"<RelativeStartTime>"
And
:
I
configure an end date in the
"<RelativeEndTime>"
When
:
I
attempt to review a peer submission
Then
:
My
attempt
to
review
a
peer submission
"<Result>"
Scenario
:
An
author can configure the peer review start and end dates
Given
:
I
am an author
And
:
I
configure a start date in the
"<RelativeStartTime>"
And
:
I
configure an end date in the
"<RelativeEndTime>"
When
:
I
attempt to review a peer submission
Then
:
My
attempt
to
review
a
peer submission
"<Result>"
Examples
:
|
RelativeStartTime
|
RelativeEndTime
|
Result
|
...
...
peer_grading/features/review_time_window.py
View file @
35e17d03
...
...
@@ -6,11 +6,11 @@ def given_i_am_an_author(step):
pass
@step
(
u'And: I configure a start date in the "([^"]*)"'
)
def
and_i_configure_a_start_date
(
step
):
def
and_i_configure_a_start_date
(
step
,
start_date
):
pass
@step
(
u'And: I configure an end date in the "([^"]*)"'
)
def
and_i_configure_an_end_date
(
step
):
def
and_i_configure_an_end_date
(
step
,
end_date
):
pass
@step
(
u'When: I attempt to review a peer submission'
)
...
...
@@ -18,5 +18,5 @@ def when_i_attempt_to_submit_a_submission(step):
pass
@step
(
u'Then: My attempt to review a peer submission "([^"]*)"'
)
def
then_my_attempt_to_submit_a_submission
(
step
):
def
then_my_attempt_to_submit_a_submission
(
step
,
result
):
pass
settings/test.py
View file @
35e17d03
...
...
@@ -5,7 +5,7 @@ Test-specific Django settings.
# Inherit from base settings
from
.base
import
*
TEST_APPS
=
(
'
common_grading'
,
'peer_grading'
)
TEST_APPS
=
(
'
peer_grading'
,
'common_grading'
,
)
# Configure nose
NOSE_ARGS
=
[
...
...
@@ -20,4 +20,4 @@ LETTUCE_APPS = TEST_APPS
LETTUCE_SERVER_PORT
=
8005
# Install test-specific Django apps
INSTALLED_APPS
+=
(
'django_nose'
,
'lettuce.django'
)
INSTALLED_APPS
+=
(
'django_nose'
,
'lettuce.django'
,
)
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