mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-07 08:46:13 +02:00
add test
This commit is contained in:
parent
ca6ee74d9d
commit
5ce16cf341
4 changed files with 25 additions and 3 deletions
|
@ -79,6 +79,15 @@ def set_config(context, config_file):
|
|||
with open(install.CONFIG_FILE_PATH, "a") as cf:
|
||||
cf.write("version: {}".format(__version__))
|
||||
|
||||
@given('there is no config')
|
||||
def no_config(context):
|
||||
nopath = "features/configs/missingconfig.yaml"
|
||||
install.CONFIG_FILE_PATH = os.path.abspath(nopath)
|
||||
#install.CONFIG_FILE_PATH_FALLBACK = os.path.abspath(nopath)
|
||||
|
||||
@when('we change directory to "{path}"')
|
||||
def move_up_dir(context,path):
|
||||
os.chdir(path)
|
||||
|
||||
@when('we open the editor and enter "{text}"')
|
||||
@when("we open the editor and enter nothing")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue