Ejemplo n.º 1
0
 def test_access_score_indicator(self):
     access_indicator = HealthScores.get_health_score("access")
     all_data = self.entities[0].get_all_data()
     print all_data
     access_indicator.add_data_records(self.entities[0])
     all_data = self.entities[0].get_all_data()
     print all_data
     self.assertEquals(all_data[self.february][u'access'], 0.5)
Ejemplo n.º 2
0
 def test_access_score_indicator(self):
     access_indicator = HealthScores.get_health_score("access")
     all_data = self.entities[0].get_all_data()
     print all_data
     access_indicator.add_data_records(self.entities[0])
     all_data = self.entities[0].get_all_data()
     print all_data
     self.assertEquals(all_data[self.february][u'access'], 0.5)
Ejemplo n.º 3
0
 def handle(self, *args, **options):
     from nmis.main.health import HealthScores
     dbm = self._get_database_manager()
     HealthScores.create_health_scores(dbm)
     HealthScores.calculate_health_scores(dbm)
Ejemplo n.º 4
0
 def create_indicators(self):
     HealthScores.create_health_scores(self.dbm)
Ejemplo n.º 5
0
 def handle(self, *args, **options):
     from nmis.main.health import HealthScores
     dbm = self._get_database_manager()
     HealthScores.create_health_scores(dbm)
     HealthScores.calculate_health_scores(dbm)
Ejemplo n.º 6
0
 def create_indicators(self):
     HealthScores.create_health_scores(self.dbm)