MCPcopy Create free account
hub / github.com/Vanderhoof/PyDBML / test_name_ref

Method test_name_ref

test/test_editing.py:71–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
80class TestEnum(EditingTestCase):

Callers

nothing calls this directly

Calls 1

get_refsMethod · 0.45

Tested by

no test coverage detected