diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-11-12 14:30:18 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-11-12 14:30:18 -0500 |
| commit | 12df8a9901256c9de7f5917296ddcb703445a52b (patch) | |
| tree | 6598af889dab479e0514461377e811b3d8d777a9 /lib/sqlalchemy/testing/plugin | |
| parent | 9dd08c2eca8ed250e3a36dcb6a9aa20693d324be (diff) | |
| download | sqlalchemy-12df8a9901256c9de7f5917296ddcb703445a52b.tar.gz | |
- support "fails_if" requirements as __requires__; so far this just skips, doesn't
actually run the test
- add requirements for date/datetime/time capabilities
- remove test/sql/test_types->DateTest and create new tests in suite/test_types
- move the StringTest with the "no length create" test to the suite, though this is a
weird test
Diffstat (limited to 'lib/sqlalchemy/testing/plugin')
| -rw-r--r-- | lib/sqlalchemy/testing/plugin/noseplugin.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/plugin/noseplugin.py b/lib/sqlalchemy/testing/plugin/noseplugin.py index 1651886b8..37f7b29f5 100644 --- a/lib/sqlalchemy/testing/plugin/noseplugin.py +++ b/lib/sqlalchemy/testing/plugin/noseplugin.py @@ -348,7 +348,12 @@ class NoseSQLAlchemy(Plugin): test_suite.__name__ = cls.__name__ for requirement in cls.__requires__: check = getattr(config.requirements, requirement) - check(test_suite)() + + if not check.enabled: + raise SkipTest( + "'%s' unsupported on DB implementation '%s'" % ( + cls.__name__, config.db.name) + ) if cls.__unsupported_on__: spec = exclusions.db_spec(*cls.__unsupported_on__) |
