diff options
author | Christian Geier <geier@lostpackets.de> | 2023-10-27 21:58:08 +0200 |
---|---|---|
committer | Christian Geier <geier@lostpackets.de> | 2023-10-28 16:40:56 +0200 |
commit | a24400ed3578c31396750d321907763e254c24dd (patch) | |
tree | e632d8e03f2390bf6890cfb5e487d4b9eb79dab1 | |
parent | cf8d263692b051a04f71c3bd1d92efcdc47241ac (diff) |
cli_test format()
-rw-r--r-- | tests/cli_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cli_test.py b/tests/cli_test.py index efef810c..5f90dbaa 100644 --- a/tests/cli_test.py +++ b/tests/cli_test.py @@ -462,7 +462,7 @@ def test_list_json(runner): now = dt.datetime.now().strftime('%d.%m.%Y') result = runner.invoke( main_khal, - 'new {} 18:00 myevent'.format(now).split()) + f'new {now} 18:00 myevent'.split()) args = ['list', '--json', 'start-end-time-style', '--json', 'title', '--json', 'description', '18:30'] result = runner.invoke(main_khal, args) @@ -484,7 +484,7 @@ def test_search(runner): def test_search_json(runner): runner = runner(days=2) now = dt.datetime.now().strftime('%d.%m.%Y') - result = runner.invoke(main_khal, 'new {} 18:00 myevent'.format(now).split()) + result = runner.invoke(main_khal, f'new {now} 18:00 myevent'.split()) result = runner.invoke(main_khal, ['search', '--json', 'start-end-time-style', '--json', 'title', '--json', 'description', 'myevent']) assert not result.exception |