summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-11-09 12:33:16 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2019-11-09 16:55:56 -0500
commitbbe754784ae4630dd0ebf30d3bc2be566f8a8fef (patch)
treec1d104f9a05fd59fc371f26c22b570daf6fd23ec /test
parent042aea980d61024fab3abac55e9e32b6b9ff6692 (diff)
downloadsqlalchemy-bbe754784ae4630dd0ebf30d3bc2be566f8a8fef.tar.gz
Support exclusion rules in combinations
Like py.test we need to be able to mark certain combination elements with exclusion rules. Add additional logic to pytestlplugin and exclusions so that the exclusion decorators can be added to the combination tuples, where they will be applied to the decorated function along with a qualifier that the test arguments need to match what's given. Change-Id: I15d2839954d77a252bab5aaf6e3fd9f388c99dd5
Diffstat (limited to 'test')
-rw-r--r--test/orm/test_defaults.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/orm/test_defaults.py b/test/orm/test_defaults.py
index 9f37dbf4d..07b82b9da 100644
--- a/test/orm/test_defaults.py
+++ b/test/orm/test_defaults.py
@@ -262,14 +262,10 @@ class ComputedDefaultsOnUpdateTest(fixtures.MappedTest):
),
)
- @testing.requires.computed_columns_on_update_returning
- def test_update_computed_eager(self):
- self._test_update_computed(True)
-
- def test_update_computed_noneager(self):
- self._test_update_computed(False)
-
- def _test_update_computed(self, eager):
+ @testing.combinations(
+ (True, testing.requires.computed_columns_on_update_returning), (False,)
+ )
+ def test_update_computed(self, eager):
if eager:
Thing = self.classes.Thing
else: