mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-06 16:26:13 +02:00
Apply Black linting
This commit is contained in:
parent
8a4fe0ec81
commit
da30eaa62f
4 changed files with 32 additions and 20 deletions
|
@ -214,7 +214,7 @@ def check_output_time_inline(context, text):
|
|||
def check_output_inline(context, text=None, text2=None):
|
||||
text = text or context.text
|
||||
out = context.stdout_capture.getvalue()
|
||||
assert (text in out or text2 in out), text or text2
|
||||
assert text in out or text2 in out, text or text2
|
||||
|
||||
|
||||
@then('the output should not contain "{text}"')
|
||||
|
@ -270,15 +270,17 @@ def check_journal_entries(context, number, journal_name="default"):
|
|||
journal = open_journal(journal_name)
|
||||
assert len(journal.entries) == number
|
||||
|
||||
@when('the journal directory is listed')
|
||||
|
||||
@when("the journal directory is listed")
|
||||
def list_journal_directory(context, journal="default"):
|
||||
files=[]
|
||||
files = []
|
||||
with open(install.CONFIG_FILE_PATH) as config_file:
|
||||
config = yaml.load(config_file, Loader=yaml.FullLoader)
|
||||
journal_path = config['journals'][journal]
|
||||
journal_path = config["journals"][journal]
|
||||
for root, dirnames, f in os.walk(journal_path):
|
||||
for file in f:
|
||||
print(os.path.join(root,file))
|
||||
for file in f:
|
||||
print(os.path.join(root, file))
|
||||
|
||||
|
||||
@then("fail")
|
||||
def debug_fail(context):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue