Skip to content

Commit

Permalink
Use autoGenerated tag instead of the hardcoded family list
Browse files Browse the repository at this point in the history
  • Loading branch information
hwpang committed Jun 14, 2021
1 parent 80d8af9 commit 8ca9754
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions testing/databaseTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,16 @@ def test_kinetics(self):

# these families have some sort of difficulty which prevents us from testing accessibility right now
difficult_families = ['Diels_alder_addition', 'Intra_R_Add_Exocyclic', 'Intra_R_Add_Endocyclic', 'Retroene']
generated_trees = ["R_Recombination"]

if len(family.forward_template.reactants) < len(family.groups.top) and family_name not in difficult_families:
if len(family.forward_template.reactants) < len(family.groups.top) and family_name not family.auto_generated:
test = lambda x: self.kinetics_check_unimolecular_groups(family_name)
test_name = "Kinetics family {0} check that unimolecular group is formatted correctly?".format(
family_name)
test.description = test_name
self.compat_func_name = test_name
yield test, family_name

if family_name not in difficult_families and family_name not in generated_trees:
if family_name not in difficult_families and family_name not family.auto_generated:
test = lambda x: self.kinetics_check_sample_descends_to_group(family_name)
test_name = "Kinetics family {0}: Entry is accessible?".format(family_name)
test.description = test_name
Expand Down

0 comments on commit 8ca9754

Please sign in to comment.