From ca6ee74d9d1b302b902bd79a9e6c7902139595e5 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 29 May 2020 16:41:23 -0400 Subject: [PATCH] Revert "add test" messed up something with features. This reverts commit 6e0ecac0ddbb40d6849a2bd22ba65dfa2f7fc3f3. --- features/core.feature | 11 ----------- features/steps/core.py | 10 ---------- 2 files changed, 21 deletions(-) diff --git a/features/core.feature b/features/core.feature index f4b3a7ac..3008cfce 100644 --- a/features/core.feature +++ b/features/core.feature @@ -113,14 +113,3 @@ Feature: Basic reading and writing to a journal 2013-06-10 15:40 Life is good. """ And we should get no error - - Scenario: Install with relative path and view from another directory - Given there is no config - When we run "jrnl hello world" and enter - """ - test.txt - n \n - """ - and we move a directory up - and we run "jrnl -n 1" - Then the output should contain "hello world" diff --git a/features/steps/core.py b/features/steps/core.py index fd6bc7b2..79591f57 100644 --- a/features/steps/core.py +++ b/features/steps/core.py @@ -79,16 +79,6 @@ 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")