lrossett / centos / centpkg

Forked from centos/centpkg 4 years ago
Clone
Blob Blame History Raw
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'