Skip to content

Commit

Permalink
fix: address testing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Feb 23, 2024
1 parent 37bf55e commit 18b37d5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cms/djangoapps/contentstore/tests/test_course_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1796,7 +1796,7 @@ def test_team_content_groups_off(self):
for team_set in settings_dict["teams_configuration"]["value"]["team_sets"]:
self.assertNotIn("dynamic_user_partition_id", team_set)

@patch("openedx.core.lib.teams_config.CONTENT_GROUPS_FOR_TEAMS.is_enabled", lambda _: True)
@patch("cms.djangoapps.models.settings.course_metadata.CONTENT_GROUPS_FOR_TEAMS.is_enabled", lambda _: True)
def test_team_content_groups_on(self):
"""
Tests that dynamic_user_partition_id is added to the model when content groups for teams are on.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1969,7 +1969,10 @@ def test_errors(self):
]


@patch("openedx.core.lib.teams_config.CONTENT_GROUPS_FOR_TEAMS.is_enabled", lambda _: True)
@patch(
"openedx.core.djangoapps.content.learning_sequences.api.processors.team_partition_groups.CONTENT_GROUPS_FOR_TEAMS.is_enabled", # lint-amnesty, pylint: disable=line-too-long
lambda _: True
)
@skip_unless_lms
class TeamPartitionGroupsTestCase(OutlineProcessorTestCase):
"""Tests for team partitions processor that affects outlines."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,10 @@ def test_group_masquerade_with_cohort(self):
self._verify_masquerade_for_all_groups()


@patch("openedx.core.lib.teams_config.CONTENT_GROUPS_FOR_TEAMS.is_enabled", lambda _: True)
@patch(
"openedx.core.djangoapps.course_groups.team_partition_scheme.CONTENT_GROUPS_FOR_TEAMS.is_enabled",
lambda _: True
)
@skip_unless_lms
class TestTeamPartitionScheme(ModuleStoreTestCase):
"""
Expand Down

0 comments on commit 18b37d5

Please sign in to comment.