Пример #1
0
 def test_requirements_in_exists(self, mock_listdir):
     mock_listdir.return_value = ['requirements.in']
     self.assertEquals(core.get_requirement_files(), ['requirements.in'])
Пример #2
0
 def test_requirements_yml_exists(self, mock_listdir):
     """We don't yet support yaml"""
     mock_listdir.return_value = ['requirements.yml']
     self.assertEquals(core.get_requirement_files(), [])
Пример #3
0
 def test_no_requirements_file(self, mock_listdir):
     mock_listdir.return_value = []
     self.assertEquals(core.get_requirement_files(), [])