Skip to content

Commit

Permalink
fix3
Browse files Browse the repository at this point in the history
  • Loading branch information
NihalM99 committed Oct 27, 2023
1 parent ddd3fe5 commit 2d24b25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/controllers/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -2401,15 +2401,15 @@ def tearDown(self):
@mock.patch('os.path.exists', return_value=True)
@mock.patch('os.listdir', return_value=['savedconfig.yml'])
@mock.patch('builtins.open', mock.mock_open(read_data=SAVED_CONFIG_DATA))
def test_get_elb_type_from_configs__saved_config(self, mock_open, mock_listdir, mock_exists):
def test_get_elb_type_from_configs__saved_config(self, *,mock_open, mock_listdir, mock_exists):
with mock.patch('os.path.join', return_value='.elasticbeanstalk/saved_configs/savedconfig.yml'):
result = create.get_elb_type_from_configs(use_saved_config=True)
self.assertEqual(result, True)

@mock.patch('os.path.exists', return_value=True)
@mock.patch('os.listdir', return_value=['config.yaml'])
@mock.patch('builtins.open', mock.mock_open(read_data=EBEXTENSIONS_DATA))
def test_get_elb_type_from_configs__ebextensions(self, mock_open, mock_listdir, mock_exists):
def test_get_elb_type_from_configs__ebextensions(self, *,mock_open, mock_listdir, mock_exists):
with mock.patch('os.path.join', return_value='.ebextensions/config.yaml'):
result = create.get_elb_type_from_configs(use_saved_config=False)
self.assertEqual(result, True)
Expand Down

0 comments on commit 2d24b25

Please sign in to comment.