#NEWLINE# @ pytest . fixture ( scope = 'session' , autouse = True ) #NEWLINE# def setup_database( settings ) : #NEWLINE# #INDENT# 'Set up the database connection and create tables.' #NEWLINE# engine = db . make_engine ( engine ) #NEWLINE# db . bind_engine ( engine , should_create = True , should_drop = True ) #NEWLINE# api_db . use_session ( db . Session )