(self)
| 69 | ) |
| 70 | |
| 71 | def test_name_ref(self) -> None: |
| 72 | products = self.dbml['public.products'] |
| 73 | col = products['merchant_id'] |
| 74 | col.name = 'changed_merchant_id' |
| 75 | merchants = self.dbml['public.merchants'] |
| 76 | table_ref = merchants.get_refs()[0] |
| 77 | self.assertIn('FOREIGN KEY ("changed_merchant_id")', table_ref.sql) |
| 78 | |
| 79 | |
| 80 | class TestEnum(EditingTestCase): |