Commit e9c84503 by Ben Patterson

Merge pull request #8561 from Stanford-Online/kluo/improve-cohort-test

Improve cohort test
parents d544db65 718c21cf
...@@ -886,7 +886,7 @@ class TestCohortsAndPartitionGroups(ModuleStoreTestCase): ...@@ -886,7 +886,7 @@ class TestCohortsAndPartitionGroups(ModuleStoreTestCase):
self.partition_id, self.partition_id,
self.group1_id, self.group1_id,
) )
with self.assertRaisesRegexp(IntegrityError, 'not unique'): with self.assertRaises(IntegrityError):
self._link_cohort_partition_group( self._link_cohort_partition_group(
self.first_cohort, self.first_cohort,
self.partition_id, self.partition_id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment