Here are the examples of the python api sqlalchemy.orm.Mapper taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Source : test_mapper.py
with MIT License
from sqlalchemy
with MIT License
from sqlalchemy
def test_cant_call_legacy_constructor_directly(self):
users, User = (
self.tables.users,
self.classes.User,
)
from sqlalchemy.orm import Mapper
with expect_raises_message(
sa.exc.InvalidRequestError,
r"The _mapper\(\) function and Mapper\(\) constructor may not be "
"invoked directly",
):
Mapper(User, users)
def test_prop_shadow(self):