remove old_format from team config tests
This commit is contained in:
@@ -295,7 +295,13 @@ class TeamsConfigurationTestCase(unittest.TestCase):
|
||||
topic_id = "topic_id_{}".format(next_num)
|
||||
name = "Name {}".format(next_num)
|
||||
description = "Description {}".format(next_num)
|
||||
return {"name": name, "description": description, "id": topic_id}
|
||||
return {
|
||||
"name": name,
|
||||
"description": description,
|
||||
"id": topic_id,
|
||||
"type": "open",
|
||||
"max_team_size": None
|
||||
}
|
||||
|
||||
def test_teams_enabled_new_course(self):
|
||||
# Make sure we can detect when no teams exist.
|
||||
@@ -341,7 +347,7 @@ class TeamsConfigurationTestCase(unittest.TestCase):
|
||||
self.add_team_configuration(max_team_size=4, topics=topics)
|
||||
self.assertTrue(self.course.teams_enabled)
|
||||
expected_teamsets_data = [
|
||||
teamset.cleaned_data_old_format
|
||||
teamset.cleaned_data
|
||||
for teamset in self.course.teamsets
|
||||
]
|
||||
self.assertEqual(expected_teamsets_data, topics)
|
||||
|
||||
@@ -198,7 +198,7 @@ class BaseTopicSerializerTestCase(SerializerTestCase):
|
||||
"""
|
||||
with self.assertNumQueries(num_queries):
|
||||
page = Paginator(
|
||||
self.course.teams_configuration.cleaned_data_old_format['topics'],
|
||||
self.course.teams_configuration.cleaned_data['teamsets'],
|
||||
self.PAGE_SIZE,
|
||||
).page(1)
|
||||
# pylint: disable=not-callable
|
||||
|
||||
Reference in New Issue
Block a user