Skip to content

Commit

Permalink
Initialized test fail parameter and updated docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
alithethird committed Aug 6, 2024
1 parent a58da7c commit c3d3cbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def test_update_database_fail(
action_event_mock: unittest.mock.MagicMock,
):
"""
arrange: after charm is initialized and database is not ready.
arrange: after charm is initialized and database is mocked to fail.
act: run update-database action.
assert: update-database action should fail.
"""
Expand Down
1 change: 1 addition & 0 deletions tests/unit/wordpress_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ def __init__(
self._wordpress_database_mock = wordpress_database_mock
self.installed_plugins = set(WordpressCharm._WORDPRESS_DEFAULT_PLUGINS)
self.installed_themes = set(WordpressCharm._WORDPRESS_DEFAULT_THEMES)
self._fail_wp_update_database = False

def exec(
self, cmd, user=None, group=None, working_dir=None, combine_stderr=None, timeout=None
Expand Down

0 comments on commit c3d3cbf

Please sign in to comment.