equal
deleted
inserted
replaced
761 ('Company', 'whatever', 'Person')) |
761 ('Company', 'whatever', 'Person')) |
762 self.assertEqual(str(exc.exception), |
762 self.assertEqual(str(exc.exception), |
763 'Cannot synchronize a relation definition for a computed ' |
763 'Cannot synchronize a relation definition for a computed ' |
764 'relation (whatever)') |
764 'relation (whatever)') |
765 |
765 |
|
766 def test_computed_relation_rename_relation_type(self): |
|
767 with self.mh() as (cnx, mh): |
|
768 mh.cmd_rename_relation_type('to_be_renamed', 'renamed') |
|
769 self.assertIn('renamed', self.schema) |
|
770 self.assertNotIn('to_be_renamed', self.schema) |
|
771 |
766 # computed attributes migration ############################################ |
772 # computed attributes migration ############################################ |
767 |
773 |
768 def setup_add_score(self): |
774 def setup_add_score(self): |
769 with self.admin_access.client_cnx() as cnx: |
775 with self.admin_access.client_cnx() as cnx: |
770 assert not cnx.execute('Company X') |
776 assert not cnx.execute('Company X') |