Method
test_mutable
test/ext/test_indexable.py:214–230
· test/ext/test_indexable.py::IndexPropertyArrayTest.test_mutable
(self)
Source from the content-addressed store, hash-verified
| 212 | ne_(a1.id, a5.id) |
| 213 | |
| 214 | def test_mutable(self): |
| 215 | Array = self.classes.Array |
| 216 | s = Session(testing.db) |
| 217 | |
| 218 | a = Array(array=[1, 2, 3]) |
| 219 | s.add(a) |
| 220 | s.commit() |
| 221 | |
| 222 | a.first = 42 |
| 223 | eq_(a.first, 42) |
| 224 | s.commit() |
| 225 | eq_(a.first, 42) |
| 226 | |
| 227 | del a.first |
| 228 | eq_(a.first, 2) |
| 229 | s.commit() |
| 230 | eq_(a.first, 2) |
| 231 | |
| 232 | def test_modified(self): |
| 233 | from sqlalchemy import inspect |
Callers
nothing calls this directly
Tested by
no test coverage detected