Esempio n. 1
0
 def test_summary_all_props_table(self):
     oh = tbls.create_observation_history(self.metadata)
     sh = tbls.create_slew_history(self.metadata)
     sfs = tbls.create_slew_final_state(self.metadata)
     ph = tbls.create_observation_proposal_history(self.metadata)
     p = tbls.create_proposal(self.metadata)
     f = tbls.create_field(self.metadata)
     summary = tbls.create_summary_all_props(self.metadata, oh, sh, sfs, p, ph, f)
     self.assertEqual(len(summary.c), 36)
Esempio n. 2
0
 def test_write_slew_history_table(self):
     sh = topic_helpers.slew_history_coll
     result = tbls.write_slew_history(sh, 1000)
     slew_hist = tbls.create_slew_history(self.metadata)
     self.check_ordered_dict_to_table(result, slew_hist)
     self.assertEqual(result['slewCount'], sh.slewCount)
     self.assertEqual(result['startDate'], sh.startDate)
     self.assertEqual(result['endDate'], sh.endDate)
     self.assertEqual(result['slewTime'], sh.slewTime)
     self.assertEqual(result['slewDistance'], sh.slewDistance)
     self.assertEqual(result['ObsHistory_observationId'], sh.ObsHistory_observationId)
     self.assertEqual(result['Session_sessionId'], 1000)
Esempio n. 3
0
 def test_create_slew_history_table(self):
     slew_hist = tbls.create_slew_history(self.metadata)
     self.assertEqual(len(slew_hist.c), 7)
     self.assertEqual(len(slew_hist.indexes), 1)