Commit 5d1594c5 by Will Daly

Merge pull request #245 from edx/will/remove-lettuce

Remove lettuce tests
parents 523fd3be 825bce0a
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 |
# -*- 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
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
# -*- 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
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 |
# -*- 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
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 |
# -*- 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
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
# -*- 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
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
# -*- 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
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
# -*- 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
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 |
# -*- 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
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
# -*- 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
......@@ -6,8 +6,5 @@ django-nose==1.2
mock==1.0.1
nose==1.3.0
coverage==3.7.1
lettuce==0.2.19
pep8==1.4.6
pylint<1.0
sure==1.2.3
......@@ -36,11 +36,8 @@ DATABASES = {
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
# Configure lettuce
LETTUCE_APPS = TEST_APPS
LETTUCE_SERVER_PORT = 8005
# 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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment