Ejemplo n.º 1
0
def callcolor(color):
    result = with_input(color)
    statement = f"""
    My favorite is: {result["old"]}.
    I also like result: {result["new"]}
    """
    click.echo(click.style(statement,bg='red', fg="blue"))
Ejemplo n.º 2
0
def test_with_input():
    """This is my library"""

    result = with_input("blue")
    assert result["old"] == "blue"
Ejemplo n.º 3
0
def test_with_input():
    result = with_input("blue")
    assert result["old"] == "blue"
Ejemplo n.º 4
0
def callcolor(color):
    result = with_input(color)
    statement = f"""My color is: {result["old"]}, 
    but I also like {result["new"]}"""
    click.echo(click.style(statement, bg=result["old"], fg="white"))
    sys.exit(0)