Commit 718c21cf by Kevin Luo

Improve cohort test

Remove SQLite version dependent error string check
parent e3d820a7
...@@ -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