(self, has_cache_key)
| 48 | |
| 49 | @testing.variation("has_cache_key", [True, False]) |
| 50 | def test_get_embedded_bindparams(self, has_cache_key): |
| 51 | bp = bindparam("x") |
| 52 | |
| 53 | if not has_cache_key: |
| 54 | |
| 55 | class NotCacheable(TypeDecorator): |
| 56 | impl = String |
| 57 | cache_ok = False |
| 58 | |
| 59 | stmt = select(column("q", NotCacheable())).where(column("y") == bp) |
| 60 | |
| 61 | else: |
| 62 | stmt = select(column("q")).where(column("y") == bp) |
| 63 | |
| 64 | eq_(stmt._get_embedded_bindparams(), [bp]) |
| 65 | |
| 66 | if not has_cache_key: |
| 67 | is_(stmt._generate_cache_key(), None) |
| 68 | else: |
| 69 | is_not_none(stmt._generate_cache_key()) |
| 70 | |
| 71 | def test_find_tables_aliases(self): |
| 72 | metadata = MetaData() |
nothing calls this directly
no test coverage detected