diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-05-02 18:43:12 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-05-02 18:43:12 -0400 |
commit | c8873b31f0c87ba0d1a7518b36af7151dec34be4 (patch) | |
tree | 827c0257a03582d96dff051fad59ddec96526f7d | |
parent | 890ac4c81b0b61b0e0b94347eb18e09c2759823d (diff) | |
download | sqlalchemy-c8873b31f0c87ba0d1a7518b36af7151dec34be4.tar.gz |
- critically, py.test for unknown reasons *SKIPS* tests that have an __init__() method.
No clue. nosetests doesn't do this. concerning that other tests might have the same issue.
-rw-r--r-- | test/ext/test_associationproxy.py | 34 |
1 files changed, 7 insertions, 27 deletions
diff --git a/test/ext/test_associationproxy.py b/test/ext/test_associationproxy.py index 6a4de0f74..4b923e318 100644 --- a/test/ext/test_associationproxy.py +++ b/test/ext/test_associationproxy.py @@ -254,35 +254,21 @@ class _CollectionOperations(fixtures.TestBase): assert True class DefaultTest(_CollectionOperations): - def __init__(self, *args, **kw): - super(DefaultTest, self).__init__(*args, **kw) - self.collection_class = None + collection_class = None def test_sequence_ops(self): self._test_sequence_ops() class ListTest(_CollectionOperations): - def __init__(self, *args, **kw): - super(ListTest, self).__init__(*args, **kw) - self.collection_class = list + collection_class = list def test_sequence_ops(self): self._test_sequence_ops() -class CustomListTest(ListTest): - def __init__(self, *args, **kw): - super(CustomListTest, self).__init__(*args, **kw) - self.collection_class = list -# No-can-do until ticket #213 -class DictTest(_CollectionOperations): - pass - -class CustomDictTest(DictTest): - def __init__(self, *args, **kw): - super(DictTest, self).__init__(*args, **kw) - self.collection_class = DictCollection +class CustomDictTest(_CollectionOperations): + collection_class = DictCollection def test_mapping_ops(self): Parent, Child = self.Parent, self.Child @@ -364,9 +350,7 @@ class CustomDictTest(DictTest): class SetTest(_CollectionOperations): - def __init__(self, *args, **kw): - super(SetTest, self).__init__(*args, **kw) - self.collection_class = set + collection_class = set def test_set_operations(self): Parent, Child = self.Parent, self.Child @@ -582,14 +566,10 @@ class SetTest(_CollectionOperations): class CustomSetTest(SetTest): - def __init__(self, *args, **kw): - super(CustomSetTest, self).__init__(*args, **kw) - self.collection_class = SetCollection + collection_class = SetCollection class CustomObjectTest(_CollectionOperations): - def __init__(self, *args, **kw): - super(CustomObjectTest, self).__init__(*args, **kw) - self.collection_class = ObjectCollection + collection_class = ObjectCollection def test_basic(self): Parent, Child = self.Parent, self.Child |