From 289a1986e2b748a31751dc84d75d84656eab401a Mon Sep 17 00:00:00 2001 From: Micah Jerome Ellison Date: Sat, 4 Jun 2022 13:46:42 -0700 Subject: [PATCH] Add BDD test for original bug --- tests/bdd/features/format.feature | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/bdd/features/format.feature b/tests/bdd/features/format.feature index 3f0decb2..9de28889 100644 --- a/tests/bdd/features/format.feature +++ b/tests/bdd/features/format.feature @@ -560,3 +560,19 @@ Feature: Custom formats | basic_encrypted.yaml | | basic_folder.yaml | | basic_dayone.yaml | + + + Scenario Outline: display_format short and pretty do not crash if specified as config values + Given we use the config "" + And we use the password "test" if prompted + When we run "jrnl --config-override display_format short -1" + Then we should get no error + When we run "jrnl --config-override display_format pretty -1" + Then we should get no error + + Examples: configs + | config_file | + | basic_onefile.yaml | + | basic_encrypted.yaml | + | basic_folder.yaml | + | basic_dayone.yaml |