Skip to content

Commit

Permalink
Fix formatting according to black
Browse files Browse the repository at this point in the history
Signed-off-by: Giulio Calacoci <giulio.calacoci@enterprisedb.com>
  • Loading branch information
gcalacoci committed Mar 14, 2024
1 parent 6f3155c commit 873c2e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions barman/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -1642,11 +1642,11 @@ def result_show_backup(self, backup_ext_info):
percent=data["wal_until_next_compression_ratio"]
)
if data["children_timelines"]:
wal_output["_WARNING"] = (
"WAL information is inaccurate \
wal_output[
"_WARNING"
] = "WAL information is inaccurate \
due to multiple timelines interacting with \
this backup"
)
for history in data["children_timelines"]:
wal_output["timelines"].append(str(history.tli))

Expand Down
12 changes: 6 additions & 6 deletions tests/test_recovery_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1763,9 +1763,9 @@ def mock_resolve_mounted_volume(_cmd):
attached_volumes["disk0"].mount_point = "/opt/disk0"
attached_volumes["disk0"].mount_options = "rw,noatime"

attached_volumes["disk0"].resolve_mounted_volume.side_effect = (
mock_resolve_mounted_volume
)
attached_volumes[
"disk0"
].resolve_mounted_volume.side_effect = mock_resolve_mounted_volume
mock_get_snapshot_interface.return_value.get_attached_volumes.return_value = (
attached_volumes
)
Expand Down Expand Up @@ -2195,9 +2195,9 @@ def mock_resolve_mounted_volume(volume, mount_info, _cmd):
# If resolved_mount_info should raise an exception then just set it as the
# side effect
if isinstance(resolved_mount_info, Exception):
attached_volumes[disk].resolve_mounted_volume.side_effect = (
resolved_mount_info
)
attached_volumes[
disk
].resolve_mounted_volume.side_effect = resolved_mount_info
# Otherwise, create a partial which sets the mount point and options to the
# values at the current index
else:
Expand Down

0 comments on commit 873c2e2

Please sign in to comment.