当前位置: 首页>>代码示例>>Python>>正文


Python cli.mangle_args_for_default_framework函数代码示例

本文整理汇总了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函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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


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