def process(self, settings, files): hive_holder = self.hive_holder delete_migration = migrate_bii_config(files, self._biiout) processor_changes = checkin_files(hive_holder, settings, files, self._biiout) blocks_process(hive_holder, processor_changes, self._biiout) deps_process(self._biiapi, hive_holder, processor_changes, self._biiout, settings) self._edition.save_hive_changes(hive_holder.hive, processor_changes) return delete_migration
def test_migrate_with_several_files(self): biiout = OutputStream() deleted = migrate_bii_config(all_files, biiout) self.assertEqual(deleted, ['user/block/bii/parents.bii']) self.assertIn('file.cpp + mydata.txt', all_files['user/block/biicode.conf']) self.assertIn('john/smith: 3', all_files['user/block/biicode.conf']) self.assertIn('file.cpp + mydata.txt', all_files['user/block/biicode.conf']) self.assertNotIn('mydata2.txt', all_files['user/block/biicode.conf']) self.assertNotIn('mydata3.txt', all_files['user/block/biicode.conf'])