mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
- This was awful and convoluted Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
19 lines
477 B
Python
19 lines
477 B
Python
import textwrap
|
|
|
|
from jrnl.exception import JrnlError
|
|
|
|
|
|
def test_config_directory_exception_message():
|
|
ex = JrnlError(
|
|
"ConfigDirectoryIsFile", config_directory_path="/config/directory/path"
|
|
)
|
|
|
|
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.
|
|
"""
|
|
)
|