def test_table_validation():
"""Defining a model with missing table attributes should raise exceptions"""
with pytest.raises(MissingTableAttribute):
class Model(DynaModel):
class Table:
name = 'table'
class Schema:
foo = String(required=True)
评论列表
文章目录