def recreate(self): """Drop and create Rally database. This will delete all existing data. """ db.schema_cleanup() db.schema_create() envutils.clear_env()
def recreate(self, api): """Drop and create Rally database. This will delete all existing data. """ print("Recreating database: ", end="") self.show(api, True) db.schema.schema_cleanup() print("Database deleted successfully") db.schema.schema_create() print("Database created successfully") envutils.clear_env()
def recreate(self): db.db_drop() db.db_create() envutils.clear_env()
def test_clear_env(self, mock_update_env_file, mock_path_exists): envutils.clear_env() self.assertEqual(os.environ, {})
def test_clear_env(self, mock_file, mock_file_status): envutils.clear_env() self.assertEqual(os.environ, {})
def recreate(self): """Drop and create Rally database.""" db.db_drop() db.db_create() envutils.clear_env()