コード例 #1
0
ファイル: flask_test_case.py プロジェクト: sophiebits/rmc
 def setUpClass(cls):
     model_test_case.ModelTestCase.setUpClass()
     # NOTE: This is done on class setup instead of test setup because it's
     # very slow. This unfortunately means that any mutation of the database
     # within a test is persisted for the rest of the tests in each test
     # class.
     fixtures.reset_db_with_fixtures()
コード例 #2
0
ファイル: test_app.py プロジェクト: hamusutasonic/FSND
 def setUp(self):
     """reset test db with fixtures before each run"""
     reset_db_with_fixtures(db=db)