From 918853a27d090969ac010583d5da5e8bb1379bab Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 14 May 2008 18:16:13 +0000 Subject: [PATCH] fixed mysql not supported declarations --- test/orm/naturalpks.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/orm/naturalpks.py b/test/orm/naturalpks.py index 3e5af47fc6..5d459287d2 100644 --- a/test/orm/naturalpks.py +++ b/test/orm/naturalpks.py @@ -136,7 +136,8 @@ class NaturalPKTest(_base.MappedTest): u1 = sess.get(User, 'fred') self.assertEquals(User(username='fred', fullname='jack'), u1) - @testing.unsupported('sqlite', 'mysql') + @testing.unsupported('sqlite', "on update cascade not supported") + @testing.unsupported('mysql', "on update cascade not supported") def test_manytoone_passive(self): self._test_manytoone(True) @@ -180,7 +181,8 @@ class NaturalPKTest(_base.MappedTest): sess.clear() self.assertEquals([Address(username='ed'), Address(username='ed')], sess.query(Address).all()) - @testing.unsupported('sqlite', 'mysql') + @testing.unsupported('sqlite', "on update cascade not supported") + @testing.unsupported('mysql', "on update cascade not supported") def test_bidirectional_passive(self): self._test_bidirectional(True) @@ -233,7 +235,8 @@ class NaturalPKTest(_base.MappedTest): self.assertEquals([Address(username='fred'), Address(username='fred')], sess.query(Address).all()) - @testing.unsupported('sqlite', 'mysql') + @testing.unsupported('sqlite', "on update cascade not supported") + @testing.unsupported('mysql', "on update cascade not supported") def test_manytomany_passive(self): self._test_manytomany(True) @@ -339,7 +342,8 @@ class NonPKCascadeTest(_base.MappedTest): class Address(_base.ComparableEntity): pass - @testing.unsupported('sqlite','mysql') + @testing.unsupported('sqlite', "on update cascade not supported") + @testing.unsupported('mysql', "on update cascade not supported") def test_onetomany_passive(self): self._test_onetomany(True) -- 2.47.3