diff --git a/features/overrides.feature b/features/overrides.feature new file mode 100644 index 00000000..e8e5b6da --- /dev/null +++ b/features/overrides.feature @@ -0,0 +1,6 @@ +Feature: Implementing Runtime Overrides for Select Configuration Keys + +Scenario: Override configured editor with built-in input === editor:'' +Given we use the config "editor-args.yaml" +When we run "jrnl --override '{\"editor\": \"\"}'" +Then the editor "" should have been called \ No newline at end of file diff --git a/features/steps/core.py b/features/steps/core.py index abac4917..d39b43f4 100644 --- a/features/steps/core.py +++ b/features/steps/core.py @@ -212,7 +212,9 @@ def open_editor_and_enter(context, method, text=""): # fmt: on - +@then("the editor {editor} should have been called") +def editor_override(context, editor): + @then("the editor should have been called") @then("the editor should have been called with {num} arguments") def count_editor_args(context, num=None):