瀏覽代碼

Add "source_directories_must_exist" option to NEWS (#501).

Dan Helfman 2 年之前
父節點
當前提交
55c153409e
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 2 0
      NEWS
  2. 2 2
      tests/unit/borg/test_create.py

+ 2 - 0
NEWS

@@ -1,4 +1,6 @@
 1.7.10.dev0
+ * #501: Optionally error if a source directory does not exist when "source_directories_must_exist"
+   option in location configuration section is true.
  * #618: Support for BORG_FILES_CACHE_TTL environment variable via "borg_files_cache_ttl" option in
    borgmatic's storage configuration.
 

+ 2 - 2
tests/unit/borg/test_create.py

@@ -2532,9 +2532,9 @@ def test_create_archive_with_stream_processes_calls_borg_with_processes_and_read
 
 
 def test_create_archive_with_non_existent_directory_and_source_directories_must_exist_raises_error():
-    """
+    '''
     If a source directory doesn't exist and source_directories_must_exist is True, raise an error.
-    """
+    '''
     flexmock(module.borgmatic.logger).should_receive('add_custom_log_levels')
     flexmock(module.logging).ANSWER = module.borgmatic.logger.ANSWER
     flexmock(module).should_receive('collect_borgmatic_source_directories').and_return([])