def test_sanofiua_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {u'1624816B-1195-4A15-8D40-F1CE889AF9F5': []} kpi_results = SANOFIUAKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() SANOFIUACalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_SANOFI_test_results_matches_reality(kpi_results)
def test_sanofiin_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {'ffbf2057-b125-42fb-80f5-761bfa358db9': []} kpi_results = SANOFIINKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() SANOFIINCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_SANOFI_test_results_matches_reality(kpi_results)
def test_lionnz_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {'F8D22FE7-2F35-4CE8-B457-9D14BC11A06A': []} kpi_results = LIONNZKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() LIONNZCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_test_results_matches_reality(kpi_results)
def test_sanofiru_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {u'F0BE2209-BC21-4654-8561-2B8D90CA3669': []} kpi_results = SANOFIRUKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() SANOFIRUCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_SANOFI_test_results_matches_reality(kpi_results)
def test_diageouk_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {'AA387E6A-47D2-4BE8-983B-3C5C44EBE409': []} kpi_results = DIAGEOUKKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() DIAGEOUKCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_DIAGEO_test_results_matches_reality(kpi_results)
def test_pngro_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {u'1e1f0116-fd2a-4828-ac5f-d715e2be6339': []} kpi_results = PNGROKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() PNGRO_PRODCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_test_results_matches_reality(kpi_results) self._assert_old_tables_kpi_results_filled()
def test_diageoza_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {'44164ea5-f62f-4200-b169-ef0966424cf7': []} kpi_results = DIAGEOZAKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() DIAGEOZACalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_DIAGEO_test_results_matches_reality(kpi_results)
def test_sanofilb_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {u'EB98326C-439E-4F3B-94FF-ED741990BEE6': []} kpi_results = SANOFILBKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() SANOFILBCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_SANOFI_test_results_matches_reality(kpi_results)
def test_diageoau_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {'5820A26E-35B0-46D7-ACEE-E83425549963': []} kpi_results = DIAGEOAUKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() DIAGEOAUCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_DIAGEO_test_results_matches_reality(kpi_results)
def test_diageoie_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {'379E71D6-8DF9-4A7B-A48C-6937C6445A44': []} kpi_results = DIAGEOIEKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() DIAGEOIECalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_DIAGEO_test_results_matches_reality(kpi_results)
def test_sanofihk_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {'9DFEEA07-A164-4C1D-8767-17262BD90C6E': []} kpi_results = SANOFIHKKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() SANOFIHKCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_SANOFI_test_results_matches_reality(kpi_results)
def test_inbevnl_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {u'154a1ba6-7115-4edb-8837-94cdac9e5936': []} kpi_results = INBEVNLKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() INBEVNLINBEVBECalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_test_results_matches_reality(kpi_results)
def test_jnjanz_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {'CC3129C1-9C06-4B28-BE68-33983548F712': []} kpi_results = JNJANZKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() JNJANZCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_test_results_matches_reality(kpi_results)
def test_sinoth_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {'fef40df9-6873-402a-8502-58e6da5f8f31': []} kpi_results = SINOTHKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() SINOTHCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_test_results_matches_reality(kpi_results)
def test_pngcn_prod_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {'10f9dc3c-4212-41af-8d64-6f9342cb52d4': ['29812584']} kpi_results = PNGCN_PRODKpiResults_SESSION().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() PngCNEmptyCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_test_results_matches_reality(kpi_results)
def test_diageoit_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {'fcb66ede-6431-49f6-a20d-d4fa97d4543f': []} kpi_results = DIAGEOITKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() DIAGEOITCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_DIAGEO_test_results_matches_reality(kpi_results)
def test_diageobenelux_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {u'D3DC2FFA-86D0-40C0-8DFC-F4E853AEAFCF': []} kpi_results = DIAGEOBENELUXKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() DIAGEOBENELUXCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_DIAGEO_test_results_matches_reality(kpi_results)
def test_sanofiza_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {u'7EFA2497-0065-4F83-9A21-78FD29EB6677': []} kpi_results = SANOFIZAKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() SANOFIZACalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_SANOFI_test_results_matches_reality(kpi_results)
def test_diageoug_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {u'6b0cf0ff-23e6-481f-9e75-92d5e0edc462': []} kpi_results = DIAGEOUGKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() DIAGEOUGCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_DIAGEO_test_results_matches_reality(kpi_results)
def test_diageoru_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {'dafebfb1-b4bf-41b7-b419-e901b4e59c32': []} kpi_results = DIAGEORUKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() DIAGEORUDIAGEORUCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_DIAGEO_test_results_matches_reality(kpi_results)
def test_sanofitn_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {u'28A21946-E499-448B-84B5-41AEEFF349B0': []} kpi_results = SANOFITNKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() SANOFITNCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_SANOFI_test_results_matches_reality(kpi_results)
def test_sanoficm_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {u'B9CD12BF-7D66-4AA2-AD23-57EFDDB6932C': []} kpi_results = SANOFICMKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() SANOFICMCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_SANOFI_test_results_matches_reality(kpi_results)
def test_marsuae_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {u'7294F357-CB4A-4636-8D79-B2047152D17D': []} kpi_results = MARSUAEKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() MarsuaeCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_test_results_matches_reality(kpi_results)
def test_marsin_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {'ffd24994-11f1-4a37-a127-9ecdb271490e': []} kpi_results = MARSINKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() MARSINCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_test_results_matches_reality(kpi_results)
def test_sanofici_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {u'0F2C7863-6F72-4086-9D0B-0E7D421DF643': []} kpi_results = SANOFICIKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() SANOFICICalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_SANOFI_test_results_matches_reality(kpi_results)
def test_inbevci_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {u'b8bb126d-8aca-42d7-80b7-d1cd26850d2d': []} kpi_results = INBEVCIKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() INBEVCIINBEVCICalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_test_results_matches_reality(kpi_results)
def test_diageonordics_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {u'0C5398C9-9036-4ED1-90CC-6CC2F2357BEC': []} kpi_results = DIAGEONORDICSKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() DIAGEONORDICSCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_DIAGEO_test_results_matches_reality(kpi_results)
def test_sanofikh_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = {'A21459C2-FAB8-423D-8F3B-2868FF801478': []} kpi_results = SANOFIKHKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() SANOFIKHCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_SANOFI_test_results_matches_reality(kpi_results)
def test_ccru_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = SESSION_LIST kpi_results = CCRUKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() CCRUCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_test_results_matches_reality(kpi_results) self._assert_old_tables_kpi_results_filled() self._assert_custom_scif_table_filled()
def test_gsksg_sanity(self): self.add_mocks() project_name = ProjectsSanityData.project_name data_provider = KEngineDataProvider(project_name) sessions = { 'f83c4b79-4c74-4857-b063-58e08d447eda': [], } kpi_results = GSKSGKpiResults().get_kpi_results() for session in sessions.keys(): data_provider.load_session_data(str(session)) output = Output() GSKSGCalculations(data_provider, output).run_project_calculations() # for scene in sessions[session]: # data_provider.load_scene_data(str(session), scene_id=scene) # SceneCalculations(data_provider).calculate_kpis() self._assert_test_results_matches_reality(kpi_results)