本文整理匯總了Python中fig.cli.main.TopLevelCommand.base_dir方法的典型用法代碼示例。如果您正苦於以下問題:Python TopLevelCommand.base_dir方法的具體用法?Python TopLevelCommand.base_dir怎麽用?Python TopLevelCommand.base_dir使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類fig.cli.main.TopLevelCommand
的用法示例。
在下文中一共展示了TopLevelCommand.base_dir方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_get_project
# 需要導入模塊: from fig.cli.main import TopLevelCommand [as 別名]
# 或者: from fig.cli.main.TopLevelCommand import base_dir [as 別名]
def test_get_project(self):
command = TopLevelCommand()
command.base_dir = 'tests/fixtures/longer-filename-figfile'
project = command.get_project(command.get_config_path())
self.assertEqual(project.name, 'longerfilenamefigfile')
self.assertTrue(project.client)
self.assertTrue(project.services)
示例2: test_yaml_filename_check
# 需要導入模塊: from fig.cli.main import TopLevelCommand [as 別名]
# 或者: from fig.cli.main.TopLevelCommand import base_dir [as 別名]
def test_yaml_filename_check(self):
command = TopLevelCommand()
command.base_dir = 'tests/fixtures/longer-filename-figfile'
with mock.patch('fig.cli.command.log', autospec=True) as mock_log:
self.assertTrue(command.get_config_path())
self.assertEqual(mock_log.warning.call_count, 2)
示例3: test_yaml_filename_check
# 需要導入模塊: from fig.cli.main import TopLevelCommand [as 別名]
# 或者: from fig.cli.main.TopLevelCommand import base_dir [as 別名]
def test_yaml_filename_check(self):
command = TopLevelCommand()
command.base_dir = 'tests/fixtures/longer-filename-figfile'
self.assertTrue(command.project.get_service('definedinyamlnotyml'))
示例4: test_project_name_with_explicit_uppercase_base_dir
# 需要導入模塊: from fig.cli.main import TopLevelCommand [as 別名]
# 或者: from fig.cli.main.TopLevelCommand import base_dir [as 別名]
def test_project_name_with_explicit_uppercase_base_dir(self):
command = TopLevelCommand()
command.base_dir = 'tests/fixtures/Simple-figfile'
project_name = command.get_project_name(command.get_config_path())
self.assertEquals('simplefigfile', project_name)
示例5: test_project_name_with_explicit_base_dir
# 需要導入模塊: from fig.cli.main import TopLevelCommand [as 別名]
# 或者: from fig.cli.main.TopLevelCommand import base_dir [as 別名]
def test_project_name_with_explicit_base_dir(self):
command = TopLevelCommand()
command.base_dir = 'tests/fixtures/simple-figfile'
self.assertEquals('simplefigfile', command.project_name)