本文整理汇总了Python中core.tns.tns.Tns.plugin_create方法的典型用法代码示例。如果您正苦于以下问题:Python Tns.plugin_create方法的具体用法?Python Tns.plugin_create怎么用?Python Tns.plugin_create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类core.tns.tns.Tns
的用法示例。
在下文中一共展示了Tns.plugin_create方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_300_build_demo
# 需要导入模块: from core.tns.tns import Tns [as 别名]
# 或者: from core.tns.tns.Tns import plugin_create [as 别名]
def test_300_build_demo(self):
# TODO: Run npm scripts from plugin seed (build plugin, link plugin and then build the app).
Tns.plugin_create(name=self.plugin_name)
demo_path = self.plugin_name + os.sep + 'demo'
Tns.build_android(attributes={"--path": demo_path})
if CURRENT_OS == OSType.OSX:
Tns.build_ios(attributes={"--path": demo_path})
示例2: test_400_plugin_create_with_wrong_template
# 需要导入模块: from core.tns.tns import Tns [as 别名]
# 或者: from core.tns.tns.Tns import plugin_create [as 别名]
def test_400_plugin_create_with_wrong_template(self):
plugin_url = "https://github.com/NativeScript/nativescript-plugin-seed/"
output = Tns.plugin_create(name=self.plugin_name, attributes={"--template": plugin_url}, assert_success=False)
assert "successfully created" not in output, "It is expected plugin create to fail in this test case."
assert not Folder.exists(self.plugin_name), "Plugin folder should not exists if create operation fails."
示例3: test_202_plugin_create_custom_user_and_plugin_name
# 需要导入模块: from core.tns.tns import Tns [as 别名]
# 或者: from core.tns.tns.Tns import plugin_create [as 别名]
def test_202_plugin_create_custom_user_and_plugin_name(self):
Tns.plugin_create(name=self.plugin_name, attributes={"--username": "gitUser", "--pluginName": "customName"})
示例4: test_201_plugin_create_custom_template
# 需要导入模块: from core.tns.tns import Tns [as 别名]
# 或者: from core.tns.tns.Tns import plugin_create [as 别名]
def test_201_plugin_create_custom_template(self):
plugin_url = "https://github.com/NativeScript/nativescript-plugin-seed/tarball/master"
output = Tns.plugin_create(name=self.plugin_name, attributes={"--template": plugin_url})
assert "Make sure your custom template is compatible with the Plugin Seed" in output
示例5: test_200_plugin_create_with_path
# 需要导入模块: from core.tns.tns import Tns [as 别名]
# 或者: from core.tns.tns.Tns import plugin_create [as 别名]
def test_200_plugin_create_with_path(self):
Tns.plugin_create(name=self.plugin_name, attributes={"--path": "plugin-folder"})
示例6: test_100_plugin_create
# 需要导入模块: from core.tns.tns import Tns [as 别名]
# 或者: from core.tns.tns.Tns import plugin_create [as 别名]
def test_100_plugin_create(self):
Tns.plugin_create(name=self.plugin_name)