示例#1
0
 def test_templates_2(self):
     expected = {
         'project': {
             'templates': [
                 'a',
                 'b',
             ],
         },
     }
     in_tree = {
         'templates': [
             'a',
             'b',
         ],
     }
     project_config = {
         'templates': [
             'a',
         ],
     }
     actual = jobs.merge_project_settings(
         {'project': in_tree},
         {'project': project_config},
     )
     self.assertEqual(expected, actual)
示例#2
0
 def test_no_data(self):
     expected = {'project': {}}
     in_tree = {}
     project_config = {}
     actual = jobs.merge_project_settings(
         {'project': in_tree},
         {'project': project_config},
     )
     self.assertEqual(expected, actual)