Skip to content

Commit

Permalink
docs: update docstrings with better descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed May 7, 2024
1 parent 99a8bc1 commit 4101928
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions openassessment/xblock/ui_mixins/mfe/test_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,41 +319,28 @@ def test_flex_grading(self, xblock):

@scenario("data/peer_assessment_mean_grading_strategy_scenario.xml")
def test_mean_grading_strategy(self, xblock):
"""Test for mean grading strategy"""
# Given a peer step with mean grading strategy

# When I ask for peer step config
"""Given a peer step with mean grading strategy, test getting the right configuration."""
peer_config = AssessmentStepsSerializer(xblock).data["settings"][
self.step_config_key
]

# Then I get the right configuration
self.assertEqual(peer_config["gradingStrategy"], "mean")

@scenario("data/peer_assessment_median_grading_strategy_scenario.xml")
def test_median_grading_strategy(self, xblock):
"""Test for median grading strategy"""
# Given a peer step with median grading strategy

# When I ask for peer step config
"""Given a peer step with median grading strategy, test getting the right configuration."""
peer_config = AssessmentStepsSerializer(xblock).data["settings"][
self.step_config_key
]

# Then I get the right configuration
self.assertEqual(peer_config["gradingStrategy"], "median")

@scenario("data/peer_assessment_default_grading_strategy_scenario.xml")
def test_default_grading_strategy(self, xblock):
"""Test for default grading strategy"""
# Given a peer step with default grading strategy

# When I ask for peer step config
"""Given a peer step without a grading strategy, test getting the right default configuration."""
peer_config = AssessmentStepsSerializer(xblock).data["settings"][
self.step_config_key
]

# Then I get the right configuration
self.assertEqual(peer_config["gradingStrategy"], "median")


Expand Down

0 comments on commit 4101928

Please sign in to comment.