mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 04:58:32 +02:00
start writing integration test
This commit is contained in:
parent
692a979efe
commit
2fc19c41b9
2 changed files with 9 additions and 1 deletions
6
features/overrides.feature
Normal file
6
features/overrides.feature
Normal file
|
@ -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
|
|
@ -212,6 +212,8 @@ 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")
|
||||
|
|
Loading…
Add table
Reference in a new issue