def __init__(self, args): super(DeployAction, self).__init__(args) self._publish = args.publish self._set_alias = SetAliasAction(args) self._single_file = args.single_file self._no_libs = args.no_libs self._env = parse_env_args(args.env)
def __init__(self, args): super(BuildAction, self).__init__(args) self._single_file = args.single_file self._no_libs = args.no_libs self._env = parse_env_args(args.env)
def test_parse_env_args_invalid(self): parse_env_args(['foobar'])
def test_parse_env_args(self): eq_(parse_env_args('foo'), None) eq_(parse_env_args(['foo=bar']), {'foo': 'bar'}) eq_(parse_env_args(['foo="bar"']), {'foo': 'bar'}) eq_(parse_env_args(['foo=\'bar baz\'']), {'foo': 'bar baz'})