Fixing bug in "test_environment_generator.py"

The method "generate_environments" in environment_generator.py
takes two arguments but 1 given in "test_environment_generator.py"

Change-Id: I39abcf2340ce04f3d193d80c8af177027c512556
This commit is contained in:
waleed mousa 2017-12-26 04:41:06 -05:00 committed by Moshe Levi
parent e6db8c4ad0
commit 6035443151

View File

@ -480,11 +480,13 @@ parameter_defaults:
fake_template2, fake_nested_output]
mock_open.side_effect = mock_se
if not self.exception:
environment_generator.generate_environments('ignored.yaml')
environment_generator.generate_environments('ignored.yaml',
'environments')
else:
self.assertRaises(self.exception,
environment_generator.generate_environments,
'ignored.yaml')
'ignored.yaml',
'environments')
return
expected = environment_generator._FILE_HEADER + self.expected_output
with open(fake_output_path) as f: