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


Python tox.cmdline方法代码示例

本文整理汇总了Python中tox.cmdline方法的典型用法代码示例。如果您正苦于以下问题:Python tox.cmdline方法的具体用法?Python tox.cmdline怎么用?Python tox.cmdline使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在tox的用法示例。


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

示例1: test_tox_cmdline_no_args

# 需要导入模块: import tox [as 别名]
# 或者: from tox import cmdline [as 别名]
def test_tox_cmdline_no_args(monkeypatch, initproj):
    initproj("help", filedefs={"tox.ini": ""})
    monkeypatch.setattr(sys, "argv", ["caller_script", "--help"])
    with pytest.raises(SystemExit):
        tox.cmdline() 
开发者ID:tox-dev,项目名称:tox,代码行数:7,代码来源:test_z_cmdline.py

示例2: test_tox_cmdline_args

# 需要导入模块: import tox [as 别名]
# 或者: from tox import cmdline [as 别名]
def test_tox_cmdline_args(initproj):
    initproj("help", filedefs={"tox.ini": ""})
    with pytest.raises(SystemExit):
        tox.cmdline(["caller_script", "--help"]) 
开发者ID:tox-dev,项目名称:tox,代码行数:6,代码来源:test_z_cmdline.py

示例3: run_tests

# 需要导入模块: import tox [as 别名]
# 或者: from tox import cmdline [as 别名]
def run_tests(self):
        import tox
        errno = tox.cmdline(self.tox_args)
        sys.exit(errno) 
开发者ID:ansible,项目名称:pytest-mp,代码行数:6,代码来源:setup.py

示例4: run_tests

# 需要导入模块: import tox [as 别名]
# 或者: from tox import cmdline [as 别名]
def run_tests(self):
        # Import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        import sys
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        else:
            # Run all tests by default
            args = ['-c', join(dirname(__file__), 'tox.ini'), 'tests']
        errno = tox.cmdline(args=args)
        sys.exit(errno) 
开发者ID:marvin-ai,项目名称:marvin-python-toolbox,代码行数:15,代码来源:setup.py

示例5: run_tests

# 需要导入模块: import tox [as 别名]
# 或者: from tox import cmdline [as 别名]
def run_tests(self):
        # Import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        else:
            # Run all tests by default
            args = ['-c', os.path.join(os.path.dirname(__file__), 'tox.ini'), 'tests']
        errno = tox.cmdline(args=args)
        sys.exit(errno) 
开发者ID:marvin-ai,项目名称:marvin-python-toolbox,代码行数:14,代码来源:setup.py

示例6: run_tests

# 需要导入模块: import tox [as 别名]
# 或者: from tox import cmdline [as 别名]
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno) 
开发者ID:marksweb,项目名称:django-bleach,代码行数:11,代码来源:setup.py

示例7: run_tests

# 需要导入模块: import tox [as 别名]
# 或者: from tox import cmdline [as 别名]
def run_tests(self):
        """Run tests."""
        # import here, cause outside the eggs aren't loaded
        import tox
        errcode = tox.cmdline(self.test_args)
        sys.exit(errcode) 
开发者ID:AUSSDA,项目名称:pyDataverse,代码行数:8,代码来源:setup.py

示例8: run_tests

# 需要导入模块: import tox [as 别名]
# 或者: from tox import cmdline [as 别名]
def run_tests(self):
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno) 
开发者ID:bnomis,项目名称:ab2cb,代码行数:10,代码来源:setup.py

示例9: run_tests

# 需要导入模块: import tox [as 别名]
# 或者: from tox import cmdline [as 别名]
def run_tests(self):
        import tox
        sys.exit(tox.cmdline()) 
开发者ID:HdrHistogram,项目名称:HdrHistogram_py,代码行数:5,代码来源:setup.py

示例10: run_tests

# 需要导入模块: import tox [as 别名]
# 或者: from tox import cmdline [as 别名]
def run_tests(self):
        import tox
        import shlex
        errno = tox.cmdline(args=shlex.split(self.tox_args))
        sys.exit(errno) 
开发者ID:mattja,项目名称:sdeint,代码行数:7,代码来源:setup.py

示例11: run_tests

# 需要导入模块: import tox [as 别名]
# 或者: from tox import cmdline [as 别名]
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        errcode = tox.cmdline(self.test_args)
        sys.exit(errcode) 
开发者ID:cloudify-cosmo,项目名称:packman,代码行数:7,代码来源:setup.py

示例12: run_tests

# 需要导入模块: import tox [as 别名]
# 或者: from tox import cmdline [as 别名]
def run_tests(self):
        import shlex
        import tox
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        errno = tox.cmdline(args=args)
        sys.exit(errno) 
开发者ID:box,项目名称:flaky,代码行数:10,代码来源:setup.py

示例13: run_tests

# 需要导入模块: import tox [as 别名]
# 或者: from tox import cmdline [as 别名]
def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        errno = tox.cmdline(self.test_args)
        sys.exit(errno) 
开发者ID:pycontribs,项目名称:activedirectory,代码行数:7,代码来源:setup.py

示例14: run_tests

# 需要导入模块: import tox [as 别名]
# 或者: from tox import cmdline [as 别名]
def run_tests(self):
        import tox
        errcode = tox.cmdline(self.test_args)
        sys.exit(errcode) 
开发者ID:Apstra,项目名称:aeon-ztps,代码行数:6,代码来源:setup.py

示例15: run_tests

# 需要导入模块: import tox [as 别名]
# 或者: from tox import cmdline [as 别名]
def run_tests(self):
        """Invoke the test runner (tox)."""
        # import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        errno = tox.cmdline(args=shlex.split(self.tox_args))
        sys.exit(errno) 
开发者ID:ansible,项目名称:pytest-ansible,代码行数:9,代码来源:setup.py


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