mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 04:58:32 +02:00
13 lines
436 B
Python
13 lines
436 B
Python
from jrnl.exception import JrnlError
|
|
|
|
|
|
def test_config_directory_exception_message():
|
|
ex = JrnlError(
|
|
"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."
|
|
)
|