• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python cli.mangle_args_for_default_framework函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中umake.ui.cli.mangle_args_for_default_framework函数的典型用法代码示例。如果您正苦于以下问题:Python mangle_args_for_default_framework函数的具体用法?Python mangle_args_for_default_framework怎么用?Python mangle_args_for_default_framework使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了mangle_args_for_default_framework函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: test_mangle_args_for_category_without_default_framework_with_extended_options

 def test_mangle_args_for_category_without_default_framework_with_extended_options(self):
     """No framework in a category with ext. option without default are preserved"""
     self.assertEquals(mangle_args_for_default_framework(["category-f", "--foo", "install_path"]),
                       ["category-f", "--foo", "install_path"])
开发者ID:champ1,项目名称:ubuntu-make,代码行数:4,代码来源:test_cli.py


示例2: test_mangle_args_for_category_without_default_framework_with_global_and_extended_options

 def test_mangle_args_for_category_without_default_framework_with_global_and_extended_options(self):
     """No framework in a category without default are preserved with global and ext options"""
     self.assertEqual(mangle_args_for_default_framework(["-v", "category-f", "--foo", "install_path"]),
                      ["-v", "category-f", "--foo", "install_path"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:4,代码来源:test_cli.py


示例3: test_mangle_args_for_framework_global_options

 def test_mangle_args_for_framework_global_options(self):
     """Well formatted framework with global options are preserved"""
     self.assertEqual(mangle_args_for_default_framework(["category-a", "framework-a"]),
                      ["category-a", "framework-a"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:4,代码来源:test_cli.py


示例4: test_mangle_args_without_framework_with_framework_options

 def test_mangle_args_without_framework_with_framework_options(self):
     """Don't choose any framework for a category with default framework and framework options"""
     self.assertEqual(mangle_args_for_default_framework(["category-a", "install_path", "--foo"]),
                      ["category-a", "install_path", "--foo"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:4,代码来源:test_cli.py


示例5: test_mangle_args_options_only

 def test_mangle_args_options_only(self):
     """Options only goes are preserved"""
     self.assertEqual(mangle_args_for_default_framework(["--foo", "-b"]), ["--foo", "-b"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:3,代码来源:test_cli.py


示例6: test_mangle_args_for_framework_none_default

 def test_mangle_args_for_framework_none_default(self):
     """Well formatted none default framework command are preserved"""
     self.assertEqual(mangle_args_for_default_framework(["category-a", "framework-b"]),
                      ["category-a", "framework-b"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:4,代码来源:test_cli.py


示例7: test_mangle_args_with_global_framework_options_between_install_with_sep

 def test_mangle_args_with_global_framework_options_between_install_with_sep(self):
     """Global and ext framework options are preserved before install_path with sep, completing with dft framework"""
     self.assertEqual(mangle_args_for_default_framework(["-v", "category-a", "--bar", "install/path", "--foo"]),
                      ["-v", "category-a", "framework-a", "--bar", "install/path", "--foo"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:4,代码来源:test_cli.py


示例8: test_mangle_args_for_category_with_short_remove_global_options

 def test_mangle_args_for_category_with_short_remove_global_options(self):
     """We mangle the -r remove option if global (before the category name) to append it to the framework option"""
     self.assertEqual(mangle_args_for_default_framework(["-r", "category-a", "framework-a"]),
                      ["category-a", "framework-a", "-r"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:4,代码来源:test_cli.py


示例9: test_mangle_args_with_global_framework_options_after_install

 def test_mangle_args_with_global_framework_options_after_install(self):
     """Global and extended framework options are preserved after install_path, NOT completing with dft framework"""
     self.assertEqual(mangle_args_for_default_framework(["-v", "category-a", "install_path", "--foo"]),
                      ["-v", "category-a", "install_path", "--foo"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:4,代码来源:test_cli.py


示例10: test_mangle_args_for_default_framework_after_install_with_sep

 def test_mangle_args_for_default_framework_after_install_with_sep(self):
     """Add the default framework if the install path has a sep"""
     self.assertEqual(mangle_args_for_default_framework(["category-a", "install/path"]),
                      ["category-a", "framework-a", "install/path"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:4,代码来源:test_cli.py


示例11: test_mangle_args_with_global_framework_extended_options

 def test_mangle_args_with_global_framework_extended_options(self):
     """Global options and framework extended options are preserved, NOT completing with default framework"""
     self.assertEqual(mangle_args_for_default_framework(["-v", "category-a", "--bar", "install_path", "--foo"]),
                      ["-v", "category-a", "--bar", "install_path", "--foo"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:4,代码来源:test_cli.py


示例12: test_mangle_args_for_default_framework_with_simple_options

 def test_mangle_args_for_default_framework_with_simple_options(self):
     """Global and framework simple options are preserved, completing with default framework with simple options"""
     self.assertEqual(mangle_args_for_default_framework(["-v", "category-a", "--foo", "--bar"]),
                      ["-v", "category-a", "framework-a", "--foo", "--bar"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:4,代码来源:test_cli.py


示例13: test_mangle_args_for_framework_with_global_and_framework_options

 def test_mangle_args_for_framework_with_global_and_framework_options(self):
     """Global options and framework options are preserved"""
     self.assertEqual(mangle_args_for_default_framework(["-v", "category-a", "framework-a", "--bar",
                                                         "install", "--foo"]),
                      ["-v", "category-a", "framework-a", "--bar", "install", "--foo"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:5,代码来源:test_cli.py


示例14: test_mangle_args_for_category_with_remove_framework_options_middle

 def test_mangle_args_for_category_with_remove_framework_options_middle(self):
     """We mangle the remove option if framework (between category and framework)"""
     self.assertEqual(mangle_args_for_default_framework(["category-a", "--remove", "framework-a"]),
                      ["category-a", "framework-a", "--remove"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:4,代码来源:test_cli.py


示例15: test_mangle_args_for_framework_in_main_category

 def test_mangle_args_for_framework_in_main_category(self):
     """framework in main category is preserved"""
     self.assertEqual(mangle_args_for_default_framework(["framework-free-a"]), ["framework-free-a"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:3,代码来源:test_cli.py


示例16: test_mangle_args_for_category_with_remove_framework_options

 def test_mangle_args_for_category_with_remove_framework_options(self):
     """We don't change the remove option if after framework"""
     self.assertEqual(mangle_args_for_default_framework(["category-a", "framework-a", "--remove", "--bar"]),
                      ["category-a", "framework-a", "--remove", "--bar"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:4,代码来源:test_cli.py


示例17: test_mangle_args_for_framework_in_main_category_with_framework_options

 def test_mangle_args_for_framework_in_main_category_with_framework_options(self):
     """framework in main category with framework simple options are preserved"""
     self.assertEqual(mangle_args_for_default_framework(["framework-free-a", "--foo"]),
                      ["framework-free-a", "--foo"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:4,代码来源:test_cli.py


示例18: test_mangle_args_none

 def test_mangle_args_none(self):
     """No option goes are preserved"""
     self.assertEqual(mangle_args_for_default_framework([]), [])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:3,代码来源:test_cli.py


示例19: test_mangle_args_for_framework_in_main_category_with_framework_extended_options

 def test_mangle_args_for_framework_in_main_category_with_framework_extended_options(self):
     """framework in main category with framework extended options are preserved"""
     self.assertEqual(mangle_args_for_default_framework(["framework-free-a", "--foo", "install_path"]),
                      ["framework-free-a", "--foo", "install_path"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:4,代码来源:test_cli.py


示例20: test_mangle_args_unknown_category

 def test_mangle_args_unknown_category(self):
     """Unknown category are preserved"""
     self.assertEqual(mangle_args_for_default_framework(["barframework", "-b"]), ["barframework", "-b"])
开发者ID:EdRondon,项目名称:ubuntu-make,代码行数:3,代码来源:test_cli.py



注:本文中的umake.ui.cli.mangle_args_for_default_framework函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python umemcache.Client类代码示例发布时间:2022-05-27
下一篇:
Python ui.UI类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap