Переглянути джерело

Test path fix for finding schema file.

Dan Helfman 7 місяців тому
батько
коміт
47a8a95b29
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      tests/integration/config/test_schema.py

+ 1 - 1
tests/integration/config/test_schema.py

@@ -8,7 +8,7 @@ MAXIMUM_LINE_LENGTH = 80
 
 
 
 
 def test_schema_line_length_stays_under_limit():
 def test_schema_line_length_stays_under_limit():
-    schema_file = open('borgmatic/config/schema.yaml')
+    schema_file = open(borgmatic.config.validate.schema_filename())
 
 
     for line in schema_file.readlines():
     for line in schema_file.readlines():
         assert len(line.rstrip('\n')) <= MAXIMUM_LINE_LENGTH
         assert len(line.rstrip('\n')) <= MAXIMUM_LINE_LENGTH