mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-04 04:00:39 -06:00
ddl2cpp: Add tests for the column isPrimaryKey property.
This commit is contained in:
committed by
Roland Bock
parent
ffd6618e58
commit
f6cb4d311a
@@ -386,6 +386,7 @@ def testColumn():
|
||||
assert column.isUnsigned
|
||||
assert column.notNull
|
||||
assert not column.hasAutoValue
|
||||
assert not column.isPrimaryKey
|
||||
|
||||
|
||||
def testConstraint():
|
||||
@@ -445,6 +446,7 @@ def testPrimaryKeyAutoIncrement():
|
||||
assert column.type == "integer"
|
||||
assert column.notNull
|
||||
assert column.hasAutoValue
|
||||
assert column.isPrimaryKey
|
||||
|
||||
def testParser():
|
||||
initDllParser()
|
||||
|
||||
Reference in New Issue
Block a user