Here are the examples of the python api sqlalchemy.inspect._readonly_props taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Source : test_versioning.py
with MIT License
from sqlalchemy
with MIT License
from sqlalchemy
def test_implicit_no_readonly(self):
# test issue 4194
Foo = self.classes.Foo
s1 = self._implicit_version_fixture()
f1 = Foo(value="f1")
s1.add(f1)
s1.flush()
is_false(bool(inspect(Foo)._readonly_props))
def go():
eq_(f1.version_id, 1)
self.assert_sql_count(testing.db, go, 0)
def test_explicit_assign_from_expired(self):