Skip to content

Commit

Permalink
small fix for previous PR (oppia#7217)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiewu6 authored and aks681 committed Jul 28, 2019
1 parent a133fde commit ba5bfd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions core/domain/exp_domain_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,9 @@ def test_validation(self):
self._assert_validation_error(
exploration, 'Expected answer group rules to be a list')

init_state.interaction.answer_groups[0].tagged_skill_misconception_id = None # pylint: disable=line-too-long
init_state.interaction.answer_groups[0].rule_specs = []
first_answer_group = init_state.interaction.answer_groups[0]
first_answer_group.tagged_skill_misconception_id = None
first_answer_group.rule_specs = []
self._assert_validation_error(
exploration,
'There must be at least one rule or training data for each'
Expand Down
4 changes: 2 additions & 2 deletions core/domain/state_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def __init__(
training_data: list(*). List of answers belonging to training
data of this answer group.
tagged_skill_misconception_id: str or None. The format is
'<skill_id>-<misconeption_id>', where skill_id is the skill ID
of the tagged misconception and misconeption_id is the id of
'<skill_id>-<misconception_id>', where skill_id is the skill ID
of the tagged misconception and misconception_id is the id of
the tagged misconception for the answer group. It is not None
only when a state is part of a Question object that
tests a particular skill.
Expand Down

0 comments on commit ba5bfd0

Please sign in to comment.