def test_infrascore(self): self.tests.pop() self.logger.info("test_infrascore" + " " + "Total :" + " " + str(self.total_tests) + " " + "Remaining :" + " " + str(len(self.tests) - 1)) b = SchoolInfra_scores(self.driver) infra_score = b.infra_score() b.remove_csv() print("infra scores validations") self.assertNotEqual(0, infra_score, msg='Failed') boy_toilet = b.Boys_toilet_percentage() b.remove_csv() self.assertNotEqual(0, boy_toilet, msg='Failed') drinking_water = b.drinking_water() b.remove_csv() self.assertNotEqual(0, drinking_water, msg='Failed') Electricity = b.Electricity() b.remove_csv() self.assertNotEqual(0, Electricity, msg='Failed') girl_toilet = b.girls_toilet() b.remove_csv() self.assertNotEqual(0, girl_toilet, msg='Failed') Handpump = b.Handpump() b.remove_csv() self.assertNotEqual(0, Handpump, msg='Failed') Handwash = b.Handwash() b.remove_csv() self.assertNotEqual(0, Handwash, msg='Failed') Library = b.Library() b.remove_csv() self.assertNotEqual(0, Library, msg='Failed') Solar_panel = b.Solar_panel() b.remove_csv() self.assertNotEqual(0, Solar_panel, msg='Failed') Tapwater = b.Tapwater() b.remove_csv() self.assertNotEqual(0, Tapwater, msg='Failed') Toilet = b.Toilet() b.remove_csv() self.assertNotEqual(0, Toilet, msg='Failed') self.logger.info("test_infrascore is completed...")
def test_infrascore(self): b = SchoolInfra_scores(self.driver) infra_score = b.infra_score() b.remove_csv() print("infra scores validations") self.assertNotEqual(0, infra_score, msg='Failed') boy_toilet = b.Boys_toilet_percentage() b.remove_csv() self.assertNotEqual(0, boy_toilet, msg='Failed') drinking_water = b.drinking_water() b.remove_csv() self.assertNotEqual(0, drinking_water, msg='Failed') Electricity = b.Electricity() b.remove_csv() self.assertNotEqual(0, Electricity, msg='Failed') girl_toilet = b.girls_toilet() b.remove_csv() self.assertNotEqual(0, girl_toilet, msg='Failed') Handpump = b.Handpump() b.remove_csv() self.assertNotEqual(0, Handpump, msg='Failed') Handwash = b.Handwash() b.remove_csv() self.assertNotEqual(0, Handwash, msg='Failed') Library = b.Library() b.remove_csv() self.assertNotEqual(0, Library, msg='Failed') Solar_panel = b.Solar_panel() b.remove_csv() self.assertNotEqual(0, Solar_panel, msg='Failed') Tapwater = b.Tapwater() b.remove_csv() self.assertNotEqual(0, Tapwater, msg='Failed') Toilet = b.Toilet() b.remove_csv() self.assertNotEqual(0, Toilet, msg='Failed')