<reponame>lionel-panhaleux/krcg-cli
from krcg_cli.parser import execute as cli_execute


def test(capsys):
    cli_execute(["complete", "Pentex"])
    outerr = capsys.readouterr()
    assert outerr.err == ""
    assert (
        outerr.out
        == """Pentex™ Loves You!
Pentex™ Subversion
<NAME>, Pentex Board of Directors
<NAME>, Pentex Board of Directors (ADV)
<NAME>, Pentex Director
"""
    )

from krcg_cli.parser import execute as cli_execute


def test(capsys):
    cli_execute(["complete", "Pentex"])
    outerr = capsys.readouterr()
    assert outerr.err == ""
    assert (
        outerr.out
        == """Pentex™ Loves You!
Pentex™ Subversion
<NAME>, Pentex Board of Directors
<NAME>, Pentex Board of Directors (ADV)
<NAME>, Pentex Director
"""
    )
Pentex™ Loves You! Pentex™ Subversion <NAME>, Pentex Board of Directors <NAME>, Pentex Board of Directors (ADV) <NAME>, Pentex Director