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 authored and mjohnson541 committed Jun 15, 2021
1 parent 98a7d80 commit a649393
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions testing/databaseTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ 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:
test = lambda x: self.kinetics_check_unimolecular_groups(family_name)
Expand All @@ -145,7 +144,7 @@ def test_kinetics(self):
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 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 a649393

Please sign in to comment.