Ejemplo n.º 1
0
def fixture_cli() -> ShoulderbirdCLI:
    """Create instance of CLI class"""
    config = ShoulderBirdConfig("./tests/fixtures/mock_shoulderbirdcli.json")
    return ShoulderbirdCLI(config, discord.Client())
Ejemplo n.º 2
0
 def __init__(self, client: Client, config_file: str = DEFAULT_CONFIG) -> None:
     """Loads config"""
     self.__config = ShoulderBirdConfig(config_file)
     self.cli = ShoulderbirdCLI(self.__config, client)
     self.client = client