def test_version(): assert _cli.main([CMD, "--version"]) == 0
def test_config(runcli): assert _cli.main([CMD, "--config-dir", runcli.config_dir]) != 0 assert runcli("config", "show") == 0 assert runcli("config", "list-codecs") == 0
def test_basic(): assert _cli.main([CMD]) != 0 assert _cli.main([CMD, "-h"]) == 0
def __call__(self, *args): fullargs = [CMD] fullargs.extend(["-C", self.config_dir]) fullargs.extend(args) return _cli.main(fullargs)
def test_config(runcli): assert _cli.main([CMD, '--config-dir', runcli.config_dir]) != 0 assert runcli('config', 'show') == 0 assert runcli('config', 'list-codecs') == 0
def test_version(): assert _cli.main([CMD, '--version']) == 0
def test_basic(): assert _cli.main([CMD]) != 0 assert _cli.main([CMD, '-h']) == 0