本文整理匯總了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"])