Beispiel #1
0
def get_errors(indivs, fams, indivsLst, famsLst):
    errors = []
    errors += us01.check_all_dates(indivs, fams)
    errors += us02.bbm(indivs, fams)
    errors += us03.bbd(indivs)
    errors += us06.divorce_before_death(indivs, fams)
    errors += us04.marriage_before_divorce(fams)
    errors += us05.marriage_before_death(indivs, fams)
    errors += us15.number_siblings(fams)
    errors += us17.check_marr_child(indivs, fams)
    errors += us18.check_marr_sib(indivs, fams)
    errors += us21.verify_correct_roles(indivs, fams)
    errors += us22.verify_unique_ids(indivsLst, famsLst)
    errors += us23.verify_unique_namesbdate(indivs)
    errors += us24.verify_unique_families(fams)
    return errors
Beispiel #2
0
 def test04(self):  #divorced date
     individuals, families = main_parser.tester(self.gedfiles[4])[:2]
     error = us01.check_all_dates(individuals, families)
     self.errors += error
     self.assertEqual(len(error) == 0, False)
Beispiel #3
0
 def test05(self):  #normal
     individuals, families = main_parser.tester(self.gedfiles[0])[:2]
     error = us01.check_all_dates(individuals, families)
     self.errors += error
     self.assertEqual(len(error) == 0, True)
Beispiel #4
0
 def test01(self):  #birthdays
     individuals, families = main_parser.tester(self.gedfiles[1])[:2]
     error = us01.check_all_dates(individuals, families)
     self.errors += error
     self.assertEqual(len(error) == 0, False)