Skip to content

Commit

Permalink
fix example tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Trifonov committed Sep 21, 2016
1 parent 30cd917 commit 2fcdad0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/alchemy_example/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ class UsersModel(orm.BaseModel):
UsersModel.__table__.create(
registry.get_engine(UsersModel.__bind_key__), checkfirst=True,
)


if not UsersModel.objects.getlist():
UsersModel.create(name='test', age=30)

0 comments on commit 2fcdad0

Please sign in to comment.