-@bootstrapped
-class FunctionalConnectionTest(unittest.TestCase):
- def test_connect_current(self):
- loop = asyncio.get_event_loop()
- conn = loop.run_until_complete(
- Connection.connect_current())
+@base.bootstrapped
+@pytest.mark.asyncio
+async def test_connect_current(event_loop):
+ async with base.CleanModel():
+ conn = await Connection.connect_current()