Пример #1
0
 def test_dependency_parsing_empty(self):
     job = JobDefinition({
         'id': 'id',
         'plugin': 'plugin'})
     expected = set()
     observed = job.get_direct_dependencies()
     self.assertEqual(expected, observed)
Пример #2
0
 def test_dependency_parsing_quoted_word(self):
     job = JobDefinition({
         'id': 'id',
         'plugin': 'plugin',
         'depends': '"quoted word"'})
     expected = set(['quoted word'])
     observed = job.get_direct_dependencies()
     self.assertEqual(expected, observed)
Пример #3
0
 def test_dependency_parsing_with_various_separators(self):
     job = JobDefinition({
         'id': 'id',
         'plugin': 'plugin',
         'depends': self.parameters_keymap[
             self.parameters.glue].join(['foo', 'bar', 'froz'])})
     expected = set({'foo', 'bar', 'froz'})
     observed = job.get_direct_dependencies()
     self.assertEqual(expected, observed)