@classmethod<EOL><INDENT>def setUpClass(cls, *args, **kwargs):<DEDENT>
cls.loop = asyncio.new_event_loop()<EOL>asyncio.set_event_loop(cls.loop)<EOL>cls.databases = load_databases(only=cls.only)<EOL>for k, database in cls.databases.items():<EOL><INDENT>database.set_allow_sync(True)<EOL>with cls.current_database(database):<EOL><INDENT>for model in cls.models:<EOL><INDENT>model.create_table(True)<EOL><DEDENT><DEDENT>database.set_allow_sync(False)<EOL><DEDENT>
Configure database managers, create test tables.