From 36ef5f11cd281b3bf86b772d375aeb92286dd0f1 Mon Sep 17 00:00:00 2001 From: Christian Geier Date: Tue, 31 Oct 2023 00:17:35 +0100 Subject: [PATCH] fix tests --- tests/parse_datetime_test.py | 4 ++-- tests/settings_test.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/parse_datetime_test.py b/tests/parse_datetime_test.py index 1dd9cd8a6..3eaa568c1 100644 --- a/tests/parse_datetime_test.py +++ b/tests/parse_datetime_test.py @@ -35,8 +35,8 @@ def _construct_event(info, locale, location=None, categories=None, repeat=None, until=None, alarm=None, **kwargs): info = eventinfofstr(' '.join(info), locale, - dt.timedelta(days=1), - dt.timedelta(hours=1), + default_event_duration=dt.timedelta(hours=1), + default_dayevent_duration=dt.timedelta(days=1), adjust_reasonably=True, ) if description is not None: diff --git a/tests/settings_test.py b/tests/settings_test.py index 74fe25ab6..290f1aeff 100644 --- a/tests/settings_test.py +++ b/tests/settings_test.py @@ -52,8 +52,8 @@ def test_simple_config(self): 'print_new': 'False', 'highlight_event_days': False, 'timedelta': dt.timedelta(days=2), - 'default_event_duration': dt.timedelta(days=1), - 'default_dayevent_duration': dt.timedelta(hours=1), + 'default_event_duration': dt.timedelta(hours=1), + 'default_dayevent_duration': dt.timedelta(days=1), 'default_event_alarm': dt.timedelta(0), 'default_dayevent_alarm': dt.timedelta(0), 'show_all_days': False, @@ -103,8 +103,8 @@ def test_small(self): 'print_new': 'False', 'highlight_event_days': False, 'timedelta': dt.timedelta(days=2), - 'default_event_duration': dt.timedelta(days=1), - 'default_dayevent_duration': dt.timedelta(hours=1), + 'default_event_duration': dt.timedelta(hours=1), + 'default_dayevent_duration': dt.timedelta(days=1), 'show_all_days': False, 'enable_mouse': True, 'default_event_alarm': dt.timedelta(0),