diff options
| author | Benjamin Trofatter <bentrofatter@gmail.com> | 2012-10-30 17:47:04 -0500 |
|---|---|---|
| committer | Benjamin Trofatter <bentrofatter@gmail.com> | 2012-10-30 17:47:04 -0500 |
| commit | 8fcd985e41fce74c26043985e497e6149f60b65b (patch) | |
| tree | 1ad52039d7cbec228c36895d471d43a9f61dfb79 /test/requirements.py | |
| parent | 05314919616cde74f4cb3393b25dbf5d062fa64c (diff) | |
| download | sqlalchemy-8fcd985e41fce74c26043985e497e6149f60b65b.tar.gz | |
Added sybase requirements to testing and improved view reflection.
Diffstat (limited to 'test/requirements.py')
| -rw-r--r-- | test/requirements.py | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/test/requirements.py b/test/requirements.py index b88b77432..6e28aeac7 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -293,16 +293,22 @@ class DefaultRequirements(SuiteRequirements): def empty_strings_varchar(self): """target database can persist/return an empty string with a varchar.""" - return fails_if("oracle", 'oracle converts empty ' - 'strings to a blank space') + return fails_if(["oracle"], + 'oracle converts empty strings to a blank space') @property def empty_strings_text(self): """target database can persist/return an empty string with an unbounded text.""" - return fails_if("oracle", 'oracle converts empty ' - 'strings to a blank space') + return fails_if(["oracle"], + 'oracle converts empty strings to a blank space') + + @property + def unicode_data(self): + return skip_if([ + no_support("sybase", "no unicode driver support") + ]) @property def unicode_connections(self): @@ -337,7 +343,6 @@ class DefaultRequirements(SuiteRequirements): lambda: not self._has_cextensions(), "C extensions not installed" ) - @property def emulated_lastrowid(self): """"target dialect retrieves cursor.lastrowid or an equivalent @@ -348,6 +353,12 @@ class DefaultRequirements(SuiteRequirements): 'mssql+pyodbc', 'mssql+mxodbc') @property + def implements_get_lastrowid(self): + return skip_if([ + no_support('sybase', 'not supported by database'), + ]) + + @property def dbapi_lastrowid(self): """"target backend includes a 'lastrowid' accessor on the DBAPI cursor object. @@ -372,7 +383,7 @@ class DefaultRequirements(SuiteRequirements): def reflects_pk_names(self): """Target driver reflects the name of primary key constraints.""" - return fails_on_everything_except('postgresql', 'oracle') + return fails_on_everything_except('postgresql', 'oracle', 'sybase') @property def python2(self): |
