Skip to content

Commit

Permalink
Fixed test. Deriving from another model doesn't work.
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Nov 27, 2014
1 parent ef18b0a commit 6980712
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ class NamedDocument(BaseNameMixin, db.Model):
content = Column(Unicode(250))


class NamedDocumentBlank(NamedDocument):
__name_blank_allowed = True
class NamedDocumentBlank(BaseNameMixin, db.Model):
__tablename__ = 'named_document_blank'
__name_blank_allowed__ = True
reserved_names = ['new']
container_id = Column(Integer, ForeignKey('container.id'))
container = relationship(Container)

content = Column(Unicode(250))


class ScopedNamedDocument(BaseScopedNameMixin, db.Model):
Expand Down

0 comments on commit 6980712

Please sign in to comment.