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
825bce0a
Commit
825bce0a
authored
Mar 31, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove lettuce tests
parent
0757dbb7
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
1 additions
and
385 deletions
+1
-385
apps/openassessment/assessment/features/__init__.py
+0
-0
apps/openassessment/assessment/features/required_reviewers.feature
+0
-17
apps/openassessment/assessment/features/required_reviewers.py
+0
-27
apps/openassessment/assessment/features/required_reviews.feature
+0
-21
apps/openassessment/assessment/features/required_reviews.py
+0
-34
apps/openassessment/assessment/features/required_reviews_validation.feature
+0
-22
apps/openassessment/assessment/features/required_reviews_validation.py
+0
-22
apps/openassessment/assessment/features/review_time_window.feature
+0
-18
apps/openassessment/assessment/features/review_time_window.py
+0
-22
apps/openassessment/assessment/features/submissions_fixed_while_grading.feature
+0
-16
apps/openassessment/assessment/features/submissions_fixed_while_grading.py
+0
-28
apps/openassessment/assessment/features/submit_submission.feature
+0
-13
apps/openassessment/assessment/features/submit_submission.py
+0
-23
apps/submissions/features/__init__.py
+0
-0
apps/submissions/features/rubric.feature
+0
-17
apps/submissions/features/rubric.py
+0
-35
apps/submissions/features/submission_time_window.feature
+0
-18
apps/submissions/features/submission_time_window.py
+0
-22
apps/submissions/features/submit_confirmation.feature
+0
-9
apps/submissions/features/submit_confirmation.py
+0
-14
requirements/test.txt
+0
-3
settings/test.py
+1
-4
No files found.
apps/openassessment/assessment/features/__init__.py
deleted
100644 → 0
View file @
0757dbb7
apps/openassessment/assessment/features/required_reviewers.feature
deleted
100644 → 0
View file @
0757dbb7
Feature
:
An author can configured required reviewers per submission.
As an author
I can configure a number of required reviewers per submission.
Scenario
:
Author configures required reviewers per submission
Given
:
I
am an author
And
:
I
configure
"<RequiredReviews>"
required reviewers per submissions
And
:
I
submit a submission
And
:
I
review enough peer submissions
When
:
"<RequiredReviews>"
students
review
the
submission
Then
:
I
receive my reviews.
Examples
:
|
RequiredReviews
|
|
1
|
|
3
|
|
7
|
apps/openassessment/assessment/features/required_reviewers.py
deleted
100644 → 0
View file @
0757dbb7
# -*- coding: utf-8 -*-
from
lettuce
import
step
@step
(
u'Given: I am an author'
)
def
given_i_am_an_author
(
step
):
pass
@step
(
u'And: I configure "([^"]*)" required reviewers per submissions'
)
def
and_i_configure_required_reviewers_per_submission
(
step
,
required
):
pass
@step
(
u'And: I submit a submission'
)
def
and_i_submit_a_submission
(
step
):
pass
@step
(
u'And: I review enough peer submissions'
)
def
and_i_review_enough_peer_submissions
(
step
):
pass
@step
(
u'When: "([^"]*)" students review the submission'
)
def
when_students_review_the_submission
(
step
,
required
):
pass
@step
(
u'Then: I receive my reviews.'
)
def
then_i_receive_my_reviews
(
step
):
pass
\ No newline at end of file
apps/openassessment/assessment/features/required_reviews.feature
deleted
100644 → 0
View file @
0757dbb7
Feature
:
An author can configured required reviews per student.
As an author
I can configure a number of required reviews per student
Before the student can see their reviewed submission.
Scenario
:
Author configures required reviewers per submission
Given
:
I
am an author
And
:
I
configure
"<RequiredPeerReviews>"
required reviews per student
And
:
A
student submits a submission
When
:
Enough
students
review
the
submission
And
:
The
student
requests
a
grade
Then
:
The
student
is
notified
they
did
not
review
enough
peer
submissions
And
:
A
student reviews
"<RequiredPeerReviews>"
peer submissions
Then
:
The
student
receives
reviews.
Examples
:
|
RequiredPeerReviews
|
|
2
|
|
5
|
|
12
|
\ No newline at end of file
apps/openassessment/assessment/features/required_reviews.py
deleted
100644 → 0
View file @
0757dbb7
# -*- coding: utf-8 -*-
from
lettuce
import
step
@step
(
u'Given: I am an author'
)
def
given_i_am_an_author
(
step
):
pass
@step
(
u'And: I configure "([^"]*)" required reviews per student'
)
def
and_i_configure_required_reviews_per_student
(
step
,
required
):
pass
@step
(
u'And: A student submits a submission'
)
def
and_a_student_submits_a_submission
(
step
):
pass
@step
(
u'And: A student reviews "([^"]*)" peer submissions'
)
def
and_a_student_reviews_peer_submissions
(
step
,
required
):
pass
@step
(
u'When: Enough students review the submission'
)
def
when_enough_students_review_the_submission
(
step
):
pass
@step
(
u'And: The student requests a grade'
)
def
and_the_student_requests_a_grade
(
step
):
pass
@step
(
u'Then: The student is notified they did not review enough peer submissions'
)
def
then_the_student_is_notified_they_did_not_review_enough_peer_submissions
(
step
):
pass
@step
(
u'Then: The student receives reviews.'
)
def
then_the_student_receives_reviews
(
step
):
pass
apps/openassessment/assessment/features/required_reviews_validation.feature
deleted
100644 → 0
View file @
0757dbb7
Feature
:
An author is required to configure less reviews than reviewers
As an author
I can configure a number of required reviews per student
I can configure the number of reviews required per submission
The reviews required per submission is validated to be less
than the number of reviews required per student
Scenario
:
An
author is required to configure less reviews than reviewers
Given
:
I
am an author
And
:
I
configure
"<RequiredPeerReviews>"
required reviews per student
And
:
I
configure
"<RequiredReviews>"
required reviews per submission
Then
:
The
validation
"<Result>"
Examples
:
|
RequiredReviews
|
RequiredPeerReviews
|
Result
|
|
1
|
2
|
passes
|
|
3
|
5
|
passes
|
|
7
|
12
|
passes
|
|
3
|
3
|
fails
|
|
3
|
2
|
fails
|
|
0
|
0
|
fails
|
|
0
|
1
|
fails
|
apps/openassessment/assessment/features/required_reviews_validation.py
deleted
100644 → 0
View file @
0757dbb7
# -*- coding: utf-8 -*-
from
lettuce
import
step
@step
(
u'Given: I am an author'
)
def
given_i_am_an_author
(
step
):
pass
@step
(
u'And: I configure "([^"]*)" required reviewers per student'
)
def
and_i_configure_required_reviewers_per_student
(
step
,
required
):
pass
@step
(
u'And: I configure "([^"]*)" required reviewers per submission'
)
def
and_i_configure_required_reviewers_per_student
(
step
,
required
):
pass
@step
(
u'And: I configure "([^"]*)" required reviews per submission'
)
def
and_i_configure_group1_required_reviews_per_submission
(
step
,
group1
):
pass
@step
(
u'Then: The validation "([^"]*)"'
)
def
then_the_validation
(
step
,
result
):
pass
apps/openassessment/assessment/features/review_time_window.feature
deleted
100644 → 0
View file @
0757dbb7
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
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
|
|
past
|
future
|
passes
|
|
future
|
future
|
fails
|
|
future
|
past
|
fails
|
|
past
|
past
|
fails
|
apps/openassessment/assessment/features/review_time_window.py
deleted
100644 → 0
View file @
0757dbb7
# -*- coding: utf-8 -*-
from
lettuce
import
step
@step
(
u'Given: I am an author'
)
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
,
start_date
):
pass
@step
(
u'And: I configure an end date in the "([^"]*)"'
)
def
and_i_configure_an_end_date
(
step
,
end_date
):
pass
@step
(
u'When: I attempt to review a peer submission'
)
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
,
result
):
pass
apps/openassessment/assessment/features/submissions_fixed_while_grading.feature
deleted
100644 → 0
View file @
0757dbb7
Feature
:
Submissions are fixed once reviews have begun
As a student
Once review of my submission has begun
I cannot modify my submission
Scenario
:
A
student can modify a submission if reviewing has not begun
Given
:
I
am a student
When
:
I
submit a submission for peer review
And
:
I
modify my submission
Then
:
I
successfully save changes to my submission
Scenario
:
A
student cannot modify a submission once reviewing has begun
Given
:
I
am a student
When
:
I
submit a submission for peer review
And
:
A
peer begins to review my submission
Then
:
I
cannot modify my submission
apps/openassessment/assessment/features/submissions_fixed_while_grading.py
deleted
100644 → 0
View file @
0757dbb7
# -*- coding: utf-8 -*-
from
lettuce
import
step
@step
(
u'Given: I am a student'
)
def
given_i_am_a_student
(
step
):
pass
@step
(
u'When: I submit a submission for peer review'
)
def
when_i_submit_a_submission_for_peer_review
(
step
):
pass
@step
(
u'And: A peer begins to review my submission'
)
def
and_a_peer_begins_to_review_my_submission
(
step
):
pass
@step
(
u'Then: I cannot modify my submission'
)
def
then_i_cannot_modify_my_submission
(
step
):
pass
@step
(
u'And: I modify my submission'
)
def
and_i_modify_my_submission
(
step
):
pass
@step
(
u'Then: I successfully save changes to my submission'
)
def
then_i_successfully_save_changes_to_my_submission
(
step
):
pass
apps/openassessment/assessment/features/submit_submission.feature
deleted
100644 → 0
View file @
0757dbb7
Feature
:
A student can submit a submission
As a student
I can submit a submission for peer review
Scenario
:
A
student can submit a submission for peer review
Given
:
I
am a student
When
:
I
submit a submission for peer review
Then
:
I
am notified that my submission has been submitted
Scenario
:
A
student can submit a submission with unicode characters
Given
:
I
am a student
When
:
I
submit a submission for peer review with unicode characters
Then
:
My
submission
is
submitted
and
the
unicode
characters
are
preserved
apps/openassessment/assessment/features/submit_submission.py
deleted
100644 → 0
View file @
0757dbb7
# -*- coding: utf-8 -*-
from
lettuce
import
step
@step
(
u'Given: I am a student'
)
def
given_i_am_a_student
(
step
):
pass
@step
(
u'When: I submit a submission for peer review'
)
def
when_i_submit_a_submission_for_peer_review
(
step
):
pass
@step
(
u'Then: I am notified that my submission has been submitted'
)
def
then_i_am_notified_that_my_submission_has_been_submitted
(
step
):
pass
@step
(
u'When: I submit a submission for peer review with unicode characters'
)
def
when_i_submit_a_submission_for_peer_review_with_unicode_characters
(
step
):
pass
@step
(
u'Then: My submission is submitted and the unicode characters are preserved'
)
def
then_my_submission_is_submitted_and_the_unicode_characters_are_preserved
(
step
):
pass
\ No newline at end of file
apps/submissions/features/__init__.py
deleted
100644 → 0
View file @
0757dbb7
apps/submissions/features/rubric.feature
deleted
100644 → 0
View file @
0757dbb7
Feature
:
As an author I can create a rubric
As an author
I want to create a rubric
In order to give feedback on Submissions
Scenario
:
As an author I create a rubric
Given
:
I
have created a rubric for a problem
When
:
I
review the problem
Then
:
I
should see the rubric
Scenario
:
As an author I update a rubric
Given
:
I
am an author
When
:
I
review a published rubric
Then
:
I
should see the rubric
And
:
I
update a rubric for a problem
When
:
I
review the problem
Then
:
I
should see the changes to the rubric
apps/submissions/features/rubric.py
deleted
100644 → 0
View file @
0757dbb7
# -*- coding: utf-8 -*-
from
lettuce
import
step
@step
(
u'Given: I am an author'
)
def
given_i_am_an_author
(
step
):
pass
@step
(
u'Given: I have created a rubric for a problem'
)
def
given_i_have_created_a_rubric_for_a_problem
(
step
):
pass
@step
(
u'When: I review the problem'
)
def
when_i_review_the_problem
(
step
):
pass
@step
(
u'Then: I should see the rubric'
)
def
then_i_should_see_the_rubric
(
step
):
pass
@step
(
u'When: I review a published rubric'
)
def
when_i_review_a_published_rubric
(
step
):
pass
@step
(
u'And: I update a rubric for a problem'
)
def
and_i_update_a_rubric_for_a_problem
(
step
):
pass
@step
(
u'When: I review the problem'
)
def
when_i_review_the_problem
(
step
):
pass
@step
(
u'Then: I should see the changes to the rubric'
)
def
then_i_should_see_the_changes_to_the_rubric
(
step
):
pass
\ No newline at end of file
apps/submissions/features/submission_time_window.feature
deleted
100644 → 0
View file @
0757dbb7
Feature
:
An author can configure the submission start and end dates
As an author
I can configure the date when a question is open for submissions
I can configure the date when a question is closed for submissions
Scenario
:
An
author can configure the submission 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 submit a submission
Then
:
My
attempt
to
submit
a
submission
"<Result>"
Examples
:
|
RelativeStartTime
|
RelativeEndTime
|
Result
|
|
past
|
future
|
passes
|
|
future
|
future
|
fails
|
|
future
|
past
|
fails
|
|
past
|
past
|
fails
|
apps/submissions/features/submission_time_window.py
deleted
100644 → 0
View file @
0757dbb7
# -*- coding: utf-8 -*-
from
lettuce
import
step
@step
(
u'Given: I am an author'
)
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
,
start_date
):
pass
@step
(
u'And: I configure an end date in the "([^"]*)"'
)
def
and_i_configure_an_end_date
(
step
,
end_date
):
pass
@step
(
u'When: I attempt to submit a submission'
)
def
when_i_attempt_to_submit_a_submission
(
step
):
pass
@step
(
u'Then: My attempt to submit a submission "([^"]*)"'
)
def
then_my_attempt_to_submit_a_submission
(
step
,
result
):
pass
apps/submissions/features/submit_confirmation.feature
deleted
100644 → 0
View file @
0757dbb7
Feature
:
Students will not accidentally submit a submission
As a student
When I submit my submission
I will need to confirm my action.
Scenario
:
A
student will not accidentally submit a submission
Given
:
I
am a student
When
:
I
submit a submission for peer review
Then
:
I
am prompted to confirm my decision
apps/submissions/features/submit_confirmation.py
deleted
100644 → 0
View file @
0757dbb7
# -*- coding: utf-8 -*-
from
lettuce
import
step
@step
(
u'Given: I am a student'
)
def
given_i_am_a_student
(
step
):
pass
@step
(
u'When: I submit a submission for peer review'
)
def
when_i_submit_a_submission_for_peer_review
(
step
):
pass
@step
(
u'Then: I am prompted to confirm my decision'
)
def
then_i_am_prompted_to_confirm_my_decision
(
step
):
pass
requirements/test.txt
View file @
825bce0a
...
@@ -6,8 +6,5 @@ django-nose==1.2
...
@@ -6,8 +6,5 @@ django-nose==1.2
mock==1.0.1
mock==1.0.1
nose==1.3.0
nose==1.3.0
coverage==3.7.1
coverage==3.7.1
lettuce==0.2.19
pep8==1.4.6
pep8==1.4.6
pylint<1.0
pylint<1.0
sure==1.2.3
settings/test.py
View file @
825bce0a
...
@@ -36,11 +36,8 @@ DATABASES = {
...
@@ -36,11 +36,8 @@ DATABASES = {
TEST_RUNNER
=
'django_nose.NoseTestSuiteRunner'
TEST_RUNNER
=
'django_nose.NoseTestSuiteRunner'
# Configure lettuce
LETTUCE_APPS
=
TEST_APPS
LETTUCE_SERVER_PORT
=
8005
# Install test-specific Django apps
# Install test-specific Django apps
INSTALLED_APPS
+=
(
'django_nose'
,
'lettuce.django'
,
)
INSTALLED_APPS
+=
(
'django_nose'
,)
EDX_ORA2
[
"EVENT_LOGGER"
]
=
"openassessment.workflow.test.events.fake_event_logger"
EDX_ORA2
[
"EVENT_LOGGER"
]
=
"openassessment.workflow.test.events.fake_event_logger"
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