本文整理匯總了Python中simple_virtuoso_migrate.main.Main._get_destination_version方法的典型用法代碼示例。如果您正苦於以下問題:Python Main._get_destination_version方法的具體用法?Python Main._get_destination_version怎麽用?Python Main._get_destination_version使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類simple_virtuoso_migrate.main.Main
的用法示例。
在下文中一共展示了Main._get_destination_version方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_it_should_get_destination_version_when_user_does_not_inform_a_specific_version
# 需要導入模塊: from simple_virtuoso_migrate.main import Main [as 別名]
# 或者: from simple_virtuoso_migrate.main.Main import _get_destination_version [as 別名]
def test_it_should_get_destination_version_when_user_does_not_inform_a_specific_version(self, simplevirtuosomigrate_mock):
self.initial_config.update({"schema_version": None})
main = Main(Config(self.initial_config))
self.assertEqual("latest_version_available", main._get_destination_version())
示例2: test_it_should_get_destination_version_when_user_informs_a_specific_version
# 需要導入模塊: from simple_virtuoso_migrate.main import Main [as 別名]
# 或者: from simple_virtuoso_migrate.main.Main import _get_destination_version [as 別名]
def test_it_should_get_destination_version_when_user_informs_a_specific_version(self, simplevirtuosomigrate_mock):
self.initial_config.update({"schema_version": "20090214115300"})
main = Main(Config(self.initial_config))
self.assertEqual("20090214115300", main._get_destination_version())
main.virtuoso_migrate.check_if_version_exists.assert_called_with('20090214115300')
self.assertEqual(1, main.virtuoso_migrate.check_if_version_exists.call_count)