Skip to content

Commit

Permalink
flake8 finished
Browse files Browse the repository at this point in the history
  • Loading branch information
romer8 committed Dec 28, 2023
1 parent 7462cf6 commit 697ad57
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/unit_tests/test_tethys_cli/test_proxyapps_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ def test_update_proxy_apps_no_app(self, mock_exit, mock_write_error):
@mock.patch("tethys_cli.proxyapps_commands.write_success")
@mock.patch("tethys_cli.proxyapps_commands.write_warning")
@mock.patch("tethys_cli.proxyapps_commands.exit", side_effect=SystemExit)
def test_update_proxy_apps_no_correct_key(self, mock_exit, mock_write_warning, mock_write_success):
def test_update_proxy_apps_no_correct_key(
self, mock_exit, mock_write_warning, mock_write_success
):
mock_args = mock.Mock()
mock_args.name = self.app_name
mock_args.set_kwargs = [["non_existing_key", "https://fake.com"]]
Expand All @@ -121,7 +123,7 @@ def test_update_proxy_apps_no_correct_key(self, mock_exit, mock_write_warning, m
)

mock_write_warning.assert_called_with(
f"Attribute non_existing_key does not exist"
"Attribute non_existing_key does not exist"
)
mock_write_success.assert_called_with(
f"Proxy app '{self.app_name}' was updated successfully"
Expand All @@ -142,7 +144,7 @@ def test_update_proxy_apps(self, mock_exit, mock_write_success, mock_write_info)
mock_args,
)
mock_write_info.assert_called_with(
f"Attribute logo_url was updated successfully with https://fake.com"
"Attribute logo_url was updated successfully with https://fake.com"
)
mock_write_success.assert_called_with(
f"Proxy app '{self.app_name}' was updated successfully"
Expand Down

0 comments on commit 697ad57

Please sign in to comment.