diff options
| author | Jason Kirtland <jek@discorporate.us> | 2007-12-13 09:59:14 +0000 |
|---|---|---|
| committer | Jason Kirtland <jek@discorporate.us> | 2007-12-13 09:59:14 +0000 |
| commit | 8128a6378affeff76b573b1b4ca1e05e7d00b021 (patch) | |
| tree | b0d20234152eb56026d509ea4b205ed086bc742a /test/orm/inheritance/manytomany.py | |
| parent | 2522534311452325513606d765ae398ce8514e2c (diff) | |
| download | sqlalchemy-8128a6378affeff76b573b1b4ca1e05e7d00b021.tar.gz | |
- Removed @testing.supported. Dialects in development or maintained outside
the tree can now run the full suite of tests out of the box.
- Migrated most @supported to @fails_on, @fails_on_everything_but, or (last
resort) @unsupported. @fails_on revealed a slew of bogus test skippage,
which was corrected.
- Added @fails_on_everything_but. Yes, the first usage *was*
"fails_on_everything_but('postgres')". How did you guess!
- Migrated @supported in dialect/* to the new test-class attribute __only_on__.
- Test classes can also have __unsupported_on__ and __excluded_on__.
Diffstat (limited to 'test/orm/inheritance/manytomany.py')
| -rw-r--r-- | test/orm/inheritance/manytomany.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/orm/inheritance/manytomany.py b/test/orm/inheritance/manytomany.py index bed719d3f..7886e90ad 100644 --- a/test/orm/inheritance/manytomany.py +++ b/test/orm/inheritance/manytomany.py @@ -131,7 +131,7 @@ class InheritTest2(ORMTest): l = sess.query(Bar).select() print l[0] print l[0].foos - self.assert_result(l, Bar, + self.assert_unordered_result(l, Bar, # {'id':1, 'data':'barfoo', 'bid':1, 'foos':(Foo, [{'id':2,'data':'subfoo1'}, {'id':3,'data':'subfoo2'}])}, {'id':b.id, 'data':'barfoo', 'foos':(Foo, [{'id':f1.id,'data':'subfoo1'}, {'id':f2.id,'data':'subfoo2'}])}, ) @@ -189,11 +189,12 @@ class InheritTest3(ORMTest): b.foos.append(Foo("foo #1")) b.foos.append(Foo("foo #2")) sess.flush() - compare = repr(b) + repr(b.foos) + compare = repr(b) + repr(sorted([repr(o) for o in b.foos])) sess.clear() l = sess.query(Bar).select() print repr(l[0]) + repr(l[0].foos) - self.assert_(repr(l[0]) + repr(l[0].foos) == compare) + found = repr(l[0]) + repr(sorted([repr(o) for o in l[0].foos])) + self.assertEqual(found, compare) @testing.fails_on('maxdb') def testadvanced(self): |
