Skip to content

Flavor feature seems broken #1166

@Lotram

Description

@Lotram

I've noticed there is no test about flavors, so I wanted to add a simple one:

    def test_flavors(self):
        self.config["general"]["interactive"] = False
        self.config["flavor"] = {
            "work": {"targets": ["my_service", "my_gitlab"], "interactive": False},
            "personal": {"targets": ["my_kan"], "interactive": False},
        }

        conf = self.validate()

This breaks in validate_config. I checked, and this was already the case before I migrated the code to pydantic v2.
Maybe I'm wrong with my test, and the flavors are not passed like that ? I think it's the case, but I'm not sure.

We should add some tests about flavors anyway

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions