start writing integration test

This commit is contained in:
Suhas 2021-01-21 22:48:01 -05:00
parent 692a979efe
commit 2fc19c41b9
2 changed files with 9 additions and 1 deletions

View 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

View file

@ -212,7 +212,9 @@ def open_editor_and_enter(context, method, text=""):
# fmt: on # 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")
@then("the editor should have been called with {num} arguments") @then("the editor should have been called with {num} arguments")
def count_editor_args(context, num=None): def count_editor_args(context, num=None):