Ejemplo n.º 1
0
 def test_do_exclusion_rules_apply_to_store_returns_true_if_kpi_in_store_policy_tab_and_store_attributes_comply_and_values_with_comma(
         self):
     self.mock_scene_item_facts(
         pd.read_excel(DataTestUnitPEPSICOUK.test_case_1, sheetname='scif'))
     self.mock_match_product_in_scene(
         pd.read_excel(DataTestUnitPEPSICOUK.test_case_1,
                       sheetname='matches'))
     self.mock_store_area(DataTestUnitPEPSICOUK.store_area_map_neutral)
     tool_box = PEPSICOUKCommonToolBox(self.data_provider_mock, self.output)
     result = tool_box.do_exclusion_rules_apply_to_store('Hero SKU SOS')
     self.assertTrue(result)
Ejemplo n.º 2
0
 def test_do_exclusion_rules_apply_to_store_returns_false_if_kpi_in_store_policy_tab_and_store_attr_do_not_match_policy(
         self):
     self.mock_scene_item_facts(
         pd.read_excel(DataTestUnitPEPSICOUK.test_case_1, sheetname='scif'))
     self.mock_match_product_in_scene(
         pd.read_excel(DataTestUnitPEPSICOUK.test_case_1,
                       sheetname='matches'))
     self.mock_store_area(DataTestUnitPEPSICOUK.store_area_map_neutral)
     tool_box = PEPSICOUKCommonToolBox(self.data_provider_mock, self.output)
     result = tool_box.do_exclusion_rules_apply_to_store('Some KPI')
     self.assertFalse(result)