Skip to content

Commit

Permalink
fixup! Don't delete misplaced items on final attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
arbrandes committed Sep 27, 2016
1 parent e2d372b commit 479b8dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/integration/test_interaction_assessment.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ def test_misplaced_items_returned_to_bank(self):

def test_misplaced_items_not_returned_to_bank_on_final_attempt(self):
"""
Test items placed to incorrect zones are not returned to item bank
after submitting solution on the final attempt
Test items placed on incorrect zones are **not** returned to item bank
after submitting solution on the final attempt, and remain placed after
subsequently refreshing the page.
"""
self.place_item(0, TOP_ZONE_ID, action_key=Keys.RETURN)

Expand Down
4 changes: 4 additions & 0 deletions tests/unit/test_advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,10 @@ def test_do_attempt_shows_final_feedback_at_last_attempt(self):
self.assertIn(expected_message, res[self.OVERALL_FEEDBACK_KEY])

def test_do_attempt_does_not_delete_misplaced_items_at_last_attempt(self):
"""
Upon submitting the final attempt, test that misplaced items are not
deleted from the item state.
"""
self._set_final_attempt()
misplaced_ids = self._submit_incorrect_solution()

Expand Down

0 comments on commit 479b8dd

Please sign in to comment.