예제 #1
0
파일: cli_test.py 프로젝트: tristanz/fig
 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
0
파일: cli_test.py 프로젝트: OculusVR/fig
 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)
예제 #3
0
파일: cli_test.py 프로젝트: OculusVR/fig
 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)
예제 #4
0
파일: cli_test.py 프로젝트: OculusVR/fig
 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
0
파일: cli_test.py 프로젝트: champ1/fig
 def test_yaml_filename_check(self):
     command = TopLevelCommand()
     command.base_dir = 'tests/fixtures/longer-filename-figfile'
     self.assertTrue(command.project.get_service('definedinyamlnotyml'))
예제 #6
0
파일: cli_test.py 프로젝트: champ1/fig
 def test_project_name_with_explicit_base_dir(self):
     command = TopLevelCommand()
     command.base_dir = 'tests/fixtures/simple-figfile'
     self.assertEquals('simplefigfile', command.project_name)
예제 #7
0
파일: cli_test.py 프로젝트: tristanz/fig
 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)
예제 #8
0
파일: cli_test.py 프로젝트: tristanz/fig
 def test_project_name_with_explicit_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)
예제 #9
0
 def test_yaml_filename_check(self):
     command = TopLevelCommand()
     command.base_dir = 'tests/fixtures/longer-filename-figfile'
     self.assertTrue(command.project.get_service('definedinyamlnotyml'))