import orm
from models import User, Blog, Comment
import asyncio


async def test(loop):
    await orm.create_pool(loop=loop, user='root', password='root', db='awesome'
        )
    u = User(name='Test', email='test@example.com', password='1234567890',
        image='about:blank')
    await u.save()
    await orm.destroy_pool()


loop = asyncio.get_event_loop()
loop.run_until_complete(test(loop))
loop.close()

c99f86fc7d03fd73fe58642bc31a135b21c3e0c0
<mask token>

<mask token>


async def test(loop):
    await orm.create_pool(loop=loop, user='root', password='root', db='awesome'
        )
    u = User(name='Test', email='test@example.com', password='1234567890',
        image='about:blank')
    await u.save()
    await orm.destroy_pool()


<mask token>
loop.run_until_complete(test(loop))
loop.close()

<mask token>


async def test(loop):
    await orm.create_pool(loop=loop, user='root', password='root', db='awesome'
        )
    u = User(name='Test', email='test@example.com', password='1234567890',
        image='about:blank')
    await u.save()
    await orm.destroy_pool()


loop = asyncio.get_event_loop()
loop.run_until_complete(test(loop))
loop.close()

import orm
from models import User, Blog, Comment
import asyncio


async def test(loop):
    await orm.create_pool(loop=loop, user='root', password='root', db='awesome'
        )
    u = User(name='Test', email='test@example.com', password='1234567890',
        image='about:blank')
    await u.save()
    await orm.destroy_pool()


loop = asyncio.get_event_loop()
loop.run_until_complete(test(loop))
loop.close()
