You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add comparison of SQLAlchemy Enums
Compare enum types and/or check constraints where supported by the
database.
* Add tests for enum comparisons
Besides the test changes themselves,
- Update mysql-connector-python to 2.1.6 that's currently available
from Oracle.
- Suppress "not-callable" errors from pylint.
- Fix flake8 indentation errors.
* Add ignores for the differing enum types
* Address version and dialect differences
Explain the differences in comments and tolerate via try...except.
* Expect comments in errors when supported
SQLAlchemy 1.2.0 added support for SQL comments. Since the test
example models include no comments, these come back as None in the
inspection output.
When the dialect indicates it `supports_comments` (a new attribute in
1.2.0), add `"comment": None` to each column in the expected_errors.
* Adapt tests' native enums for SQLAlchemy 1.0
SQLAlchemy supports PEP 435 Enum classes as of 1.1.
In order to exercise get_check_constraints-related code aimed
at < 1.1.0, adapt the Polarity (native enum) columns to the
1.0 Enum API when using 1.0.
* Exempt get_check_constraints protection from coverage
Testing with sqlalchemy 1.2 and mysql raises neither the
AttributeError nor the NotImplementedError in _get_constraints_data.
Disable coverage checking for the except clause so tests can pass.
0 commit comments