File: test_deprecations.py

package info (click to toggle)
sqlalchemy 1.4.46%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 22,444 kB
  • sloc: python: 341,434; ansic: 1,760; makefile: 226; xml: 17; sh: 7
file content (11 lines) | stat: -rw-r--r-- 380 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
from sqlalchemy import testing
from sqlalchemy.testing import fixtures
from sqlalchemy.util.compat import import_


class DatabaseRemovedTest(fixtures.TestBase):
    def test_deprecate_databases(self):
        with testing.expect_deprecated_20(
            "The `database` package is deprecated and will be removed in v2.0 "
        ):
            import_("sqlalchemy.databases")