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"))
def test_with_input(): """This is my library""" result = with_input("blue") assert result["old"] == "blue"
def test_with_input(): result = with_input("blue") assert result["old"] == "blue"
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)