mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-10 01:16:12 +02:00
Format code a bit nicer
This commit is contained in:
parent
7ac104a60d
commit
b0f437f345
2 changed files with 22 additions and 10 deletions
|
@ -1,3 +1,5 @@
|
|||
import textwrap
|
||||
|
||||
from jrnl.exception import JrnlError
|
||||
|
||||
|
||||
|
@ -6,8 +8,12 @@ def test_config_directory_exception_message():
|
|||
"ConfigDirectoryIsFile", config_directory_path="/config/directory/path"
|
||||
)
|
||||
|
||||
assert ex.message == (
|
||||
"The path to your jrnl configuration directory is a file, not a directory:\n"
|
||||
+ "/config/directory/path\n"
|
||||
+ "Removing this file will allow jrnl to save its configuration."
|
||||
assert ex.message == textwrap.dedent(
|
||||
"""
|
||||
The path to your jrnl configuration directory is a file, not a directory:
|
||||
|
||||
/config/directory/path
|
||||
|
||||
Removing this file will allow jrnl to save its configuration.
|
||||
"""
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue