File: test_litestar_re_exports.py

package info (click to toggle)
python-advanced-alchemy 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,708 kB
  • sloc: python: 25,811; makefile: 162; javascript: 123; sh: 4
file content (13 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
# ruff: noqa: F401

import pytest


def test_repository_re_exports() -> None:
    with pytest.warns(DeprecationWarning):
        from litestar.contrib.sqlalchemy import types  # type: ignore
        from litestar.contrib.sqlalchemy.repository import (
            SQLAlchemyAsyncRepository,  # type: ignore
            SQLAlchemySyncRepository,  # type: ignore
            wrap_sqlalchemy_exception,  # type: ignore
        )