Skip to content

Commit

Permalink
repair failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
QFer committed May 31, 2023
1 parent a11d8c5 commit 646bc9f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tests/test_command_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_applications_create_success(self):
['create', self.application, 'role1', 'role2'])
mock_cwd.assert_called_once()
self.assertEqual(mock_validate_path_name.call_count, 3)
application_create_mock.assert_called_once_with(application_name=self.application, roles=('role1', 'role2'),
application_create_mock.assert_called_once_with(application_name=self.application, roles=['role1', 'role2'],
application_path=self.path / self.application)
self.assertEqual(application_create_output.exit_code, 0)
self.assertIn(f"Application '{self.application}' created successfully in directory "
Expand Down Expand Up @@ -184,8 +184,8 @@ def test_applications_local_clone_success(self):
self.assertEqual(applications_validate_mock.call_count, 1)
self.assertEqual(mock_validate_path_name.call_count, 1)
application_clone_mock.assert_called_once_with(application_name=self.application, local=True,
new_application_name='new_app',
new_application_path=self.path / 'new_app')
new_application_name='new_app',
new_application_path=self.path / 'new_app')
self.assertEqual(application_clone_output.exit_code, 0)
self.assertIn(f"Application '{self.application}' cloned successfully in directory "
f"'{self.path / 'new_app'}'",
Expand Down Expand Up @@ -237,7 +237,7 @@ def test_applications_clone_exceptions(self):
# Raise ApplicationAlreadyExists
application_exists_mock.return_value = True, "the_path"
application_clone_output = self.runner.invoke(applications_app,
['clone', self.application, 'new_app'])
['clone', self.application, 'new_app'])
self.assertIn(f"Application 'new_app' already exists. Application location: 'the_path'",
application_clone_output.stdout)

Expand Down Expand Up @@ -343,7 +343,7 @@ def test_applications_validate_all_ok(self):
application_path=self.path)
self.assertIn(f"Application '{self.application}' is valid", application_validate_output.stdout)

# When application is valid with item in in 'info'
# When application is valid with item in 'info'
retrieve_appname_and_path_mock.reset_mock()
applications_validate_mock.reset_mock()
applications_validate_mock.return_value = {"error": {}, "warning": {}, "info": {"info"}}
Expand Down

0 comments on commit 646bc9f

Please sign in to comment.