mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-04 07:26:14 +02:00
rename cli.py to main.py
This commit is contained in:
parent
e02e10c32c
commit
9985c8a87a
4 changed files with 8 additions and 8 deletions
|
@ -8,7 +8,7 @@ from pytest_bdd import when
|
|||
from pytest_bdd.parsers import parse
|
||||
from pytest_bdd.parsers import re
|
||||
|
||||
from jrnl.cli import cli
|
||||
from jrnl.main import run
|
||||
|
||||
|
||||
@when(parse('we change directory to "{directory_name}"'))
|
||||
|
@ -44,7 +44,7 @@ def we_run_jrnl(cli_run, capsys, keyring):
|
|||
mocks[id] = stack.enter_context(factories[id]())
|
||||
|
||||
try:
|
||||
cli_run["status"] = cli() or 0
|
||||
cli_run["status"] = run() or 0
|
||||
except StopIteration:
|
||||
# This happens when input is expected, but don't have any input left
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue