@@ -0,0 +1,634 @@
+#!/usr/bin/env python3%0A# -*- coding: utf-8 -*-%0Afrom www.static.orm import create_pool%0Afrom www.static.models import User,Blogs,Comment%0Aimport asyncio%0A%0Aasync def test_save():%0A    # u = User(name=%22Test1%22, email=%22test1@163.com%22, passwd=%2266666666%22, image=%22about:blank%22)%0A    u = User(name='Test2', email='test2@163.com', passwd='88888888', image='about:blank')%0A    await u.save()%0A%0Aasync def test_findall():%0A    user = await User.findAll()%0A    print(user)%0A%0A%0Aloop = asyncio.get_event_loop()%0Aloop.run_until_complete(create_pool(loop,user=%22root%22,db=%22webapp%22))%0A# loop.run_until_complete(test_save())%0Aloop.run_until_complete(test_findall())%0A%0A%0A%0A%0A

添加了测试这三个model的测试类testuser.py