Skip to content

Commit

Permalink
Add Fedora schema loading fix to NEWS (#703).
Browse files Browse the repository at this point in the history
  • Loading branch information
witten committed Jun 4, 2023
1 parent b3f7043 commit 1a5b3c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
or monitoring), so not even errors are shown.
* #688: Tweak archive check probing logic to use the newest timestamp found when multiple exist.
* #659: Add Borg 2 date-based matching flags to various actions for archive selection.
* #703: Fix an error when loading the configuration schema on Fedora Linux.
* #704: Fix "check" action error when repository and archive checks are configured but the archive
check gets skipped due to the configured frequency.
* #706: Fix "--archive latest" on "list" and "info" actions that only worked on the first of
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/config/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
def test_schema_filename_finds_schema_path():
schema_path = '/var/borgmatic/config/schema.yaml'

flexmock(os.path).should_receive('dirname').and_return("/var/borgmatic/config")
flexmock(os.path).should_receive('dirname').and_return('/var/borgmatic/config')
builtins = flexmock(sys.modules['builtins'])
builtins.should_receive('open').with_args(schema_path).and_return(StringIO())
assert module.schema_filename() == schema_path
Expand All @@ -20,7 +20,7 @@ def test_schema_filename_finds_schema_path():
def test_schema_filename_raises_filenotfounderror():
schema_path = '/var/borgmatic/config/schema.yaml'

flexmock(os.path).should_receive('dirname').and_return("/var/borgmatic/config")
flexmock(os.path).should_receive('dirname').and_return('/var/borgmatic/config')
builtins = flexmock(sys.modules['builtins'])
builtins.should_receive('open').with_args(schema_path).and_raise(FileNotFoundError)

Expand Down

0 comments on commit 1a5b3c9

Please sign in to comment.