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


Python TempdirMixin.setUpClass方法代码示例

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


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

示例1: setUpClass

# 需要导入模块: from rez.tests.util import TempdirMixin [as 别名]
# 或者: from rez.tests.util.TempdirMixin import setUpClass [as 别名]
    def setUpClass(cls):
        TempdirMixin.setUpClass()

        path = os.path.dirname(__file__)
        packages_path = os.path.join(path, "data", "suites", "packages")
        cls.settings = dict(
            packages_path=[packages_path],
            package_filter=None,
            implicit_packages=[],
            warn_untimestamped=False,
            resolve_caching=False)
开发者ID:rvsiy,项目名称:rez,代码行数:13,代码来源:test_suites.py

示例2: setUpClass

# 需要导入模块: from rez.tests.util import TempdirMixin [as 别名]
# 或者: from rez.tests.util.TempdirMixin import setUpClass [as 别名]
    def setUpClass(cls):
        TempdirMixin.setUpClass()

        packages_path = os.path.join(cls.root, "packages")
        os.makedirs(packages_path)
        hello_world.bind(packages_path)

        cls.settings = dict(
            packages_path=[packages_path],
            package_filter=None,
            implicit_packages=[],
            warn_untimestamped=False)
开发者ID:instinct-vfx,项目名称:rez,代码行数:14,代码来源:test_shells.py

示例3: setUpClass

# 需要导入模块: from rez.tests.util import TempdirMixin [as 别名]
# 或者: from rez.tests.util.TempdirMixin import setUpClass [as 别名]
    def setUpClass(cls):
        TempdirMixin.setUpClass()

        path = os.path.realpath(os.path.dirname(__file__))
        cls.solver_packages_path = os.path.join(path, "data", "solver", "packages")
        cls.packages_base_path = os.path.join(path, "data", "packages")
        cls.yaml_packages_path = os.path.join(cls.packages_base_path, "yaml_packages")
        cls.py_packages_path = os.path.join(cls.packages_base_path, "py_packages")

        cls.settings = dict(
            packages_path=[cls.solver_packages_path,
                           cls.yaml_packages_path,
                           cls.py_packages_path],
            package_filter=None)
开发者ID:RovioAnimation,项目名称:rez,代码行数:16,代码来源:test_packages.py

示例4: setUpClass

# 需要导入模块: from rez.tests.util import TempdirMixin [as 别名]
# 或者: from rez.tests.util.TempdirMixin import setUpClass [as 别名]
    def setUpClass(cls):
        TempdirMixin.setUpClass()

        path = os.path.dirname(__file__)
        cls.src_path = os.path.join(path, "data", "release")
        cls.src_root = os.path.join(cls.root, "src")
        cls.install_root = os.path.join(cls.root, "packages")

        cls.settings = dict(
            packages_path=[cls.install_root],
            package_filter=None,
            release_packages_path=cls.install_root,
            resolve_caching=False,
            warn_untimestamped=False,
            implicit_packages=[])
开发者ID:foutoucour,项目名称:rez,代码行数:17,代码来源:test_release.py

示例5: setUpClass

# 需要导入模块: from rez.tests.util import TempdirMixin [as 别名]
# 或者: from rez.tests.util.TempdirMixin import setUpClass [as 别名]
    def setUpClass(cls):
        TempdirMixin.setUpClass()

        path = os.path.dirname(__file__)
        packages_path = os.path.join(path, "data", "builds", "packages")
        cls.src_root = os.path.join(cls.root, "src", "packages")
        cls.install_root = os.path.join(cls.root, "packages")
        shutil.copytree(packages_path, cls.src_root)

        cls.settings = dict(
            packages_path=[cls.install_root],
            package_filter=None,
            resolve_caching=False,
            warn_untimestamped=False,
            warn_old_commands=False,
            implicit_packages=[])
开发者ID:RovioAnimation,项目名称:rez,代码行数:18,代码来源:test_build.py

示例6: setUpClass

# 需要导入模块: from rez.tests.util import TempdirMixin [as 别名]
# 或者: from rez.tests.util.TempdirMixin import setUpClass [as 别名]
    def setUpClass(cls):
        TempdirMixin.setUpClass()

        path = os.path.realpath(os.path.dirname(__file__))
        cls.solver_packages_path = os.path.join(path, "data", "solver", "packages")
        cls.packages_base_path = os.path.join(path, "data", "packages")
        cls.yaml_packages_path = os.path.join(cls.packages_base_path, "yaml_packages")
        cls.py_packages_path = os.path.join(cls.packages_base_path, "py_packages")

        cls.package_definition_build_python_paths = [
            os.path.join(path, "data", "python", "early_bind")
        ]

        cls.settings = dict(
            packages_path=[cls.solver_packages_path,
                           cls.yaml_packages_path,
                           cls.py_packages_path],
            package_definition_build_python_paths=cls.package_definition_build_python_paths,
            package_filter=None)
开发者ID:Pixomondo,项目名称:rez,代码行数:21,代码来源:test_packages.py

示例7: setUpClass

# 需要导入模块: from rez.tests.util import TempdirMixin [as 别名]
# 或者: from rez.tests.util.TempdirMixin import setUpClass [as 别名]
    def setUpClass(cls):
        TempdirMixin.setUpClass()

        path = os.path.dirname(__file__)
        packages_path = os.path.join(path, "data", "builds", "packages")
        cls.src_root = os.path.join(cls.root, "src", "packages")
        cls.install_root = os.path.join(cls.root, "packages")
        shutil.copytree(packages_path, cls.src_root)

        # repo we will copy packages into
        cls.dest_install_root = os.path.join(cls.root, "dest_packages")

        # include modules
        pypath = os.path.join(path, "data", "python", "late_bind")

        cls.settings = dict(
            packages_path=[cls.install_root],
            package_filter=None,
            package_definition_python_path=pypath,
            resolve_caching=False,
            warn_untimestamped=False,
            warn_old_commands=False,
            implicit_packages=[])
开发者ID:mottosso,项目名称:rez,代码行数:25,代码来源:test_copy_package.py

示例8: setUpClass

# 需要导入模块: from rez.tests.util import TempdirMixin [as 别名]
# 或者: from rez.tests.util.TempdirMixin import setUpClass [as 别名]
 def setUpClass(cls):
     TempdirMixin.setUpClass()
     cls.settings = dict()
开发者ID:mottosso,项目名称:rez,代码行数:5,代码来源:test_pip.py


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