def test_manage_init_create_pkg_config(): # init_pkg(tmp_dir) env = get_pkg_config(tmp_dir) assert env is not None assert "_pkglts" in env.globals
from tuto_tools import initialize, rg initialize() from pkglts.manage import add_option, get_pkg_config, write_pkg_config pkg_cfg = get_pkg_config() for option in ("doc", "github", "travis", "pypi", "coveralls", "readthedocs", "landscape"): pkg_cfg = add_option(option, pkg_cfg) pkg_cfg['base']['pkgname'] = 'toto' pkg_cfg['pysetup']['intended_versions'] = ["27", "34", "35"] write_pkg_config(pkg_cfg) rg()
def test_manage_init_create_pkg_config(tmp_dir): cfg = get_pkg_config(tmp_dir) assert cfg is not None assert "_pkglts" in cfg