mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-07 00:36:13 +02:00
add test
This commit is contained in:
parent
6aa522cb2c
commit
6e0ecac0dd
2 changed files with 21 additions and 0 deletions
|
@ -79,6 +79,16 @@ 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):
|
||||
nonexistentpath = "features/configs/fake_config.yaml"
|
||||
install.CONFIG_FILE_PATH = os.path.abspath(nonexistentpath)
|
||||
install.CONFIG_FILE_PATH_FALLBACK = os.path.abspath(nonexistentpath)
|
||||
|
||||
@when('we move a directory up')
|
||||
def move_directory_up(context):
|
||||
os.chdir("..")
|
||||
|
||||
|
||||
@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