<s> import unittest <EOL> from models . appointment import Appointment <EOL> class BaseTest ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> from reminders import app , db <EOL> self . app = app <EOL> self . db = db <EOL> self . celery = app . celery ( ) <EOL> self . test_client = app . flask_app . test_client ( ) <EOL> self . app . flask_app . config [ '<STR_LIT>' ] = False <EOL> def tearDown ( self ) : <EOL> self . db . session . query ( Appointment ) . delete ( ) <EOL> self . db . session . commit ( ) <EOL> self . celery . control . purge ( ) <EOL> self . celery . conf . CELERY_ALWAYS_EAGER = False </s>
