#NEWLINE# @ pytest . fixture ( scope = 'session' , autouse = True ) #NEWLINE# def _initialize( app , loop , request ) : #NEWLINE# #INDENT# app . _loop = loop #NEWLINE# if ( 'peewee' in loop . plugins ) : #NEWLINE# #INDENT# import peewee #NEWLINE# for model in app . plugins . peewee . models . values ( ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# model . create_table ( ) #NEWLINE# #UNINDENT# except peewee . OperationalError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# loop . run_until_complete ( app . start ( ) ) #NEWLINE# @ request . addfinalizer #NEWLINE# def finish( ) : #NEWLINE# #INDENT# loop . run_until_complete ( app . finish ( ) ) #NEWLINE# loop . close ( )