def setUp(self):
self.run_count = <NUM_LIT:0><EOL>self.loop = asyncio.new_event_loop()<EOL>self.managers = load_managers(loop=self.loop, only=self.only)<EOL>for _, objects in self.managers.items():<EOL><INDENT>objects.database.set_allow_sync(False)<EOL>with self.manager(objects, allow_sync=True):<EOL><INDENT>for model in self.models:<EOL><INDENT>model.create_table(True)<EOL><DEDENT>for model in reversed(self.models):<EOL><INDENT>model.delete().execute()<EOL><DEDENT><DEDENT><DEDENT>
Setup the new event loop, and database configs, reset counter.