Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 def test_parse_env_args_invalid(self):
     parse_env_args(['foobar'])
Пример #4
0
 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'})
Пример #5
0
 def test_parse_env_args_invalid(self):
     parse_env_args(['foobar'])
Пример #6
0
 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'})