本文整理汇总了Python中sqlalchemy.testing.provision.create_follower_db方法的典型用法代码示例。如果您正苦于以下问题:Python provision.create_follower_db方法的具体用法?Python provision.create_follower_db怎么用?Python provision.create_follower_db使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sqlalchemy.testing.provision
的用法示例。
在下文中一共展示了provision.create_follower_db方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: pytest_configure_node
# 需要导入模块: from sqlalchemy.testing import provision [as 别名]
# 或者: from sqlalchemy.testing.provision import create_follower_db [as 别名]
def pytest_configure_node(node):
# the master for each node fills slaveinput dictionary
# which pytest-xdist will transfer to the subprocess
plugin_base.memoize_important_follower_config(node.slaveinput)
node.slaveinput["follower_ident"] = "test_%s" % uuid.uuid4().hex[0:12]
from sqlalchemy.testing import provision
provision.create_follower_db(node.slaveinput["follower_ident"])
示例2: pytest_configure_node
# 需要导入模块: from sqlalchemy.testing import provision [as 别名]
# 或者: from sqlalchemy.testing.provision import create_follower_db [as 别名]
def pytest_configure_node(node):
# the master for each node fills slaveinput dictionary
# which pytest-xdist will transfer to the subprocess
plugin_base.memoize_important_follower_config(node.slaveinput)
node.slaveinput["follower_ident"] = "test_%s" % uuid.uuid4().hex[0:12]
from sqlalchemy.testing import provision
provision.create_follower_db(node.slaveinput["follower_ident"])