(self)
| 191 | ) |
| 192 | |
| 193 | def test_update_custom_key_thing(self): |
| 194 | table1 = self.tables.mytable |
| 195 | |
| 196 | class Thing: |
| 197 | def __clause_element__(self): |
| 198 | return table1.c.name |
| 199 | |
| 200 | stmt = ( |
| 201 | table1.update() |
| 202 | .values({Thing(): class="st">"jack"}) |
| 203 | .where(table1.c.name == class="st">"jill") |
| 204 | ) |
| 205 | |
| 206 | self.assert_compile( |
| 207 | stmt, |
| 208 | class="st">"UPDATE mytable SET name=&class="cm">#x27;jack' WHERE mytable.name = 'jill'", |
| 209 | literal_binds=True, |
| 210 | ) |
| 211 | |
| 212 | def test_update_ordered_custom_key_thing(self): |
| 213 | table1 = self.tables.mytable |
nothing calls this directly
no test coverage detected