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)
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)