Format code a bit nicer

This commit is contained in:
Micah Jerome Ellison 2021-01-02 14:37:12 -08:00
parent 7ac104a60d
commit b0f437f345
2 changed files with 22 additions and 10 deletions

View file

@ -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.
"""
)