37def test_configs():
38 """Make sure that all algorithms defined in the METChainParts have
39 configurations
40
41 Really, this is mainly to have something sensible to call in the
42 ConfigHelpers file to succeed the ctest :(
43 """
44 unknown_algs = []
45 for alg in METChainParts["EFrecoAlg"]:
46 for subcls in AlgConfig._get_subclasses():
47 if subcls.algType() == alg:
48 break
49 else:
50 unknown_algs.append(alg)
51 assert (
52 len(unknown_algs) == 0
53 ), "The following EFrecoAlgs do not have AlgConfig classes: " "{}".format(
54 unknown_algs
55 )
56
57