def METHOD_NAME(self):
    with self.assertRaisesRegex(
        AssertionError,
        "Parent layer must be given if no flavor config is given",
    ):
        self.compile(include_flavor_config=False)