mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-05 07:56:14 +02:00
Implement testing for -month, -day, -year, and -reminisce
This commit is contained in:
parent
d15d7daa97
commit
0355af936c
4 changed files with 117 additions and 0 deletions
|
@ -151,6 +151,25 @@ def test_on_date_alone():
|
|||
assert cli_as_dict("-on 'saturday'") == expected_args(on_date="saturday")
|
||||
|
||||
|
||||
def test_month_alone():
|
||||
assert cli_as_dict("-month 1") == expected_args(month="1")
|
||||
assert cli_as_dict("-month January") == expected_args(month="January")
|
||||
assert cli_as_dict("-month Jan") == expected_args(month="Jan")
|
||||
|
||||
|
||||
def test_day_alone():
|
||||
assert cli_as_dict("-day 1") == expected_args(day="1")
|
||||
|
||||
|
||||
def test_year_alone():
|
||||
assert cli_as_dict("-year 2021") == expected_args(year="2021")
|
||||
assert cli_as_dict("-year 21") == expected_args(year="21")
|
||||
|
||||
|
||||
def test_reminisce_alone():
|
||||
assert cli_as_dict("-reminisce") == expected_args(reminisce=True)
|
||||
|
||||
|
||||
def test_short_alone():
|
||||
assert cli_as_dict("--short") == expected_args(short=True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue