Ejemplo n.º 1
0
 def handle(self, *args, **options):
     manager = load_manager_for_default_test_account()
     print ("Deleting %s.....") % (manager.database_name,)
     _delete_db_and_remove_db_manager(manager)
     manager = load_manager_for_default_test_account()
     print "Loading All View"
     mangrove.datastore.views.create_views(manager)
     create_views(manager)
     print "Loading data....."
     load_data()
     print "Done."
Ejemplo n.º 2
0
    def setUp(self):
        self.dbm = get_db_manager(database='mangrove-test')
        create_views(self.dbm)
        self.project1 = Project(name="Test1", goals="Testing", project_type="Survey", entity_type="Clinic",
                                devices=['web'])
        self.project1_id = self.project1.save(self.dbm)
        self.project2 = Project(name="Test2", goals="Testing", project_type="Survey", entity_type="Clinic",
                                devices=['web'])
        self.project2_id = self.project2.save(self.dbm)

        self._create_form_model_for_project(self.project1)