From 2fcdad052f6524bc52281cf8bc95d4a465acf4f0 Mon Sep 17 00:00:00 2001 From: Mikhail Trifonov Date: Wed, 21 Sep 2016 18:25:55 +0300 Subject: [PATCH] fix example tests --- example/alchemy_example/models/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/alchemy_example/models/__init__.py b/example/alchemy_example/models/__init__.py index 718ace3..408e4c6 100644 --- a/example/alchemy_example/models/__init__.py +++ b/example/alchemy_example/models/__init__.py @@ -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)