import configparser
from centpkg.api import cli
def test_cli_name(fixtures_dir):
config = configparser.ConfigParser()
config.read(f'{fixtures_dir}/centpkg.conf')
assert cli.CentPkgCli(config).name == 'centpkg'
assert cli.CentPkgCli(config, name='foobar').name == 'foobar'