8 errors, 4 fail, 13 pass in 15m 48s
Annotations
Check failure on line 0 in end2end.test_start_stop.TestCLIStartStopCommand
github-actions / Test Results
1 out of 2 runs with error: test_start_stop_simple[CalendarType.Outlook365-chromium] (end2end.test_start_stop.TestCLIStartStopCommand)
artifacts/Test Results (windows-latest)/test-results.xml [took 13s]
Raw output
failed on setup with "OSError: [Errno 22] Invalid argument"
request = <SubRequest 'configured_cli_no_bg_jobs' for <Function test_start_stop_simple[CalendarType.Outlook365-chromium]>>
start_commands = ConfiguredCommands(commands=['dnd-start', 'echo start>> C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runner...Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-1/test_start_stop_simple_Calenda0/verification.txt'))
stop_commands = ConfiguredCommands(commands=['dnd-stop', 'echo stop>> C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runnerad...Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-1/test_start_stop_simple_Calenda0/verification.txt'))
browser_context = <BrowserContext browser=<Browser type=<BrowserType name=chromium executable_path=C:\Users\runneradmin\AppData\Local\ms-playwright\chromium-1140\chrome-win\chrome.exe> version=130.0.6723.31>>
@pytest.fixture(params=[CalendarType.Outlook365, CalendarType.CalDAV])
def configured_cli_no_bg_jobs(request, start_commands, stop_commands, browser_context) -> ConfiguredCLI:
> yield from configured_cli(request.param, skip_background_scheduler_setup=True, start_commands=start_commands,
stop_commands=stop_commands, browser_context=browser_context)
tests\conftest.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests\conftest.py:196: in configured_cli
write_line_to_stream(config_process.stdin, config.dnd_profile_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
stream = <_io.TextIOWrapper name=12 encoding='cp1252'>, input = 'prio-only'
def write_line_to_stream(stream: IO, input: Any):
stream.write(str(input) + '\n')
> stream.flush()
E OSError: [Errno 22] Invalid argument
tests\conftest.py:92: OSError
Check failure on line 0 in end2end.test_start_stop.TestCLIStartStopCommand
github-actions / Test Results
1 out of 2 runs with error: test_start_stop_simple[CalendarType.CalDAV-chromium] (end2end.test_start_stop.TestCLIStartStopCommand)
artifacts/Test Results (windows-latest)/test-results.xml [took 6s]
Raw output
failed on setup with "OSError: [Errno 22] Invalid argument"
request = <SubRequest 'configured_cli_no_bg_jobs' for <Function test_start_stop_simple[CalendarType.CalDAV-chromium]>>
start_commands = ConfiguredCommands(commands=['dnd-start', 'echo start>> C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runner...Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-1/test_start_stop_simple_Calenda1/verification.txt'))
stop_commands = ConfiguredCommands(commands=['dnd-stop', 'echo stop>> C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runnerad...Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-1/test_start_stop_simple_Calenda1/verification.txt'))
browser_context = <BrowserContext browser=<Browser type=<BrowserType name=chromium executable_path=C:\Users\runneradmin\AppData\Local\ms-playwright\chromium-1140\chrome-win\chrome.exe> version=130.0.6723.31>>
@pytest.fixture(params=[CalendarType.Outlook365, CalendarType.CalDAV])
def configured_cli_no_bg_jobs(request, start_commands, stop_commands, browser_context) -> ConfiguredCLI:
> yield from configured_cli(request.param, skip_background_scheduler_setup=True, start_commands=start_commands,
stop_commands=stop_commands, browser_context=browser_context)
tests\conftest.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests\conftest.py:196: in configured_cli
write_line_to_stream(config_process.stdin, config.dnd_profile_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
stream = <_io.TextIOWrapper name=15 encoding='cp1252'>, input = 'prio-only'
def write_line_to_stream(stream: IO, input: Any):
stream.write(str(input) + '\n')
> stream.flush()
E OSError: [Errno 22] Invalid argument
tests\conftest.py:92: OSError
Check failure on line 0 in end2end.test_sync.TestCLISyncCommand
github-actions / Test Results
1 out of 2 runs with error: test_manual_on_off_sync[CalendarType.Outlook365-chromium] (end2end.test_sync.TestCLISyncCommand)
artifacts/Test Results (windows-latest)/test-results.xml [took 2s]
Raw output
failed on setup with "OSError: [Errno 22] Invalid argument"
request = <SubRequest 'configured_cli_no_bg_jobs' for <Function test_manual_on_off_sync[CalendarType.Outlook365-chromium]>>
start_commands = ConfiguredCommands(commands=['dnd-start', 'echo start>> C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runner...Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-1/test_manual_on_off_sync_Calend0/verification.txt'))
stop_commands = ConfiguredCommands(commands=['dnd-stop', 'echo stop>> C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runnerad...Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-1/test_manual_on_off_sync_Calend0/verification.txt'))
browser_context = <BrowserContext browser=<Browser type=<BrowserType name=chromium executable_path=C:\Users\runneradmin\AppData\Local\ms-playwright\chromium-1140\chrome-win\chrome.exe> version=130.0.6723.31>>
@pytest.fixture(params=[CalendarType.Outlook365, CalendarType.CalDAV])
def configured_cli_no_bg_jobs(request, start_commands, stop_commands, browser_context) -> ConfiguredCLI:
> yield from configured_cli(request.param, skip_background_scheduler_setup=True, start_commands=start_commands,
stop_commands=stop_commands, browser_context=browser_context)
tests\conftest.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests\conftest.py:196: in configured_cli
write_line_to_stream(config_process.stdin, config.dnd_profile_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
stream = <_io.TextIOWrapper name=18 encoding='cp1252'>, input = 'prio-only'
def write_line_to_stream(stream: IO, input: Any):
stream.write(str(input) + '\n')
> stream.flush()
E OSError: [Errno 22] Invalid argument
tests\conftest.py:92: OSError
Check failure on line 0 in end2end.test_sync.TestCLISyncCommand
github-actions / Test Results
1 out of 2 runs with error: test_manual_on_off_sync[CalendarType.CalDAV-chromium] (end2end.test_sync.TestCLISyncCommand)
artifacts/Test Results (windows-latest)/test-results.xml [took 4s]
Raw output
failed on setup with "OSError: [Errno 22] Invalid argument"
request = <SubRequest 'configured_cli_no_bg_jobs' for <Function test_manual_on_off_sync[CalendarType.CalDAV-chromium]>>
start_commands = ConfiguredCommands(commands=['dnd-start', 'echo start>> C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runner...Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-1/test_manual_on_off_sync_Calend1/verification.txt'))
stop_commands = ConfiguredCommands(commands=['dnd-stop', 'echo stop>> C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runnerad...Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-1/test_manual_on_off_sync_Calend1/verification.txt'))
browser_context = <BrowserContext browser=<Browser type=<BrowserType name=chromium executable_path=C:\Users\runneradmin\AppData\Local\ms-playwright\chromium-1140\chrome-win\chrome.exe> version=130.0.6723.31>>
@pytest.fixture(params=[CalendarType.Outlook365, CalendarType.CalDAV])
def configured_cli_no_bg_jobs(request, start_commands, stop_commands, browser_context) -> ConfiguredCLI:
> yield from configured_cli(request.param, skip_background_scheduler_setup=True, start_commands=start_commands,
stop_commands=stop_commands, browser_context=browser_context)
tests\conftest.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests\conftest.py:196: in configured_cli
write_line_to_stream(config_process.stdin, config.dnd_profile_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
stream = <_io.TextIOWrapper name=21 encoding='cp1252'>, input = 'prio-only'
def write_line_to_stream(stream: IO, input: Any):
stream.write(str(input) + '\n')
> stream.flush()
E OSError: [Errno 22] Invalid argument
tests\conftest.py:92: OSError
Check failure on line 0 in end2end.test_sync.TestCLISyncCommand
github-actions / Test Results
1 out of 2 runs with error: test_automated_on_off_sync[CalendarType.Outlook365-chromium] (end2end.test_sync.TestCLISyncCommand)
artifacts/Test Results (windows-latest)/test-results.xml [took 2s]
Raw output
failed on setup with "OSError: [Errno 22] Invalid argument"
request = <SubRequest 'configured_cli_with_bg_jobs' for <Function test_automated_on_off_sync[CalendarType.Outlook365-chromium]>>
start_commands = ConfiguredCommands(commands=['dnd-start', 'echo start>> C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runner...Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-1/test_automated_on_off_sync_Cal0/verification.txt'))
stop_commands = ConfiguredCommands(commands=['dnd-stop', 'echo stop>> C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runnerad...Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-1/test_automated_on_off_sync_Cal0/verification.txt'))
browser_context = <BrowserContext browser=<Browser type=<BrowserType name=chromium executable_path=C:\Users\runneradmin\AppData\Local\ms-playwright\chromium-1140\chrome-win\chrome.exe> version=130.0.6723.31>>
@pytest.fixture(params=[CalendarType.Outlook365])
def configured_cli_with_bg_jobs(request, start_commands, stop_commands, browser_context) -> ConfiguredCLI:
> yield from configured_cli(request.param, skip_background_scheduler_setup=False, start_commands=start_commands,
stop_commands=stop_commands, browser_context=browser_context)
tests\conftest.py:110:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests\conftest.py:196: in configured_cli
write_line_to_stream(config_process.stdin, config.dnd_profile_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
stream = <_io.TextIOWrapper name=24 encoding='cp1252'>, input = 'prio-only'
def write_line_to_stream(stream: IO, input: Any):
stream.write(str(input) + '\n')
> stream.flush()
E OSError: [Errno 22] Invalid argument
tests\conftest.py:92: OSError
Check failure on line 0 in end2end.test_sync.TestCLISyncCommand
github-actions / Test Results
1 out of 2 runs with error: test_reminder[CalendarType.Outlook365-chromium] (end2end.test_sync.TestCLISyncCommand)
artifacts/Test Results (windows-latest)/test-results.xml [took 2s]
Raw output
failed on setup with "OSError: [Errno 22] Invalid argument"
request = <SubRequest 'configured_cli_no_bg_jobs' for <Function test_reminder[CalendarType.Outlook365-chromium]>>
start_commands = ConfiguredCommands(commands=['dnd-start', 'echo start>> C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runner...Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-1/test_reminder_CalendarType_Out0/verification.txt'))
stop_commands = ConfiguredCommands(commands=['dnd-stop', 'echo stop>> C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runnerad...Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-1/test_reminder_CalendarType_Out0/verification.txt'))
browser_context = <BrowserContext browser=<Browser type=<BrowserType name=chromium executable_path=C:\Users\runneradmin\AppData\Local\ms-playwright\chromium-1140\chrome-win\chrome.exe> version=130.0.6723.31>>
@pytest.fixture(params=[CalendarType.Outlook365, CalendarType.CalDAV])
def configured_cli_no_bg_jobs(request, start_commands, stop_commands, browser_context) -> ConfiguredCLI:
> yield from configured_cli(request.param, skip_background_scheduler_setup=True, start_commands=start_commands,
stop_commands=stop_commands, browser_context=browser_context)
tests\conftest.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests\conftest.py:196: in configured_cli
write_line_to_stream(config_process.stdin, config.dnd_profile_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
stream = <_io.TextIOWrapper name=27 encoding='cp1252'>, input = 'prio-only'
def write_line_to_stream(stream: IO, input: Any):
stream.write(str(input) + '\n')
> stream.flush()
E OSError: [Errno 22] Invalid argument
tests\conftest.py:92: OSError
Check failure on line 0 in end2end.test_sync.TestCLISyncCommand
github-actions / Test Results
1 out of 2 runs with error: test_reminder[CalendarType.CalDAV-chromium] (end2end.test_sync.TestCLISyncCommand)
artifacts/Test Results (windows-latest)/test-results.xml [took 4s]
Raw output
failed on setup with "OSError: [Errno 22] Invalid argument"
request = <SubRequest 'configured_cli_no_bg_jobs' for <Function test_reminder[CalendarType.CalDAV-chromium]>>
start_commands = ConfiguredCommands(commands=['dnd-start', 'echo start>> C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runner...Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-1/test_reminder_CalendarType_Cal0/verification.txt'))
stop_commands = ConfiguredCommands(commands=['dnd-stop', 'echo stop>> C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runnerad...Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-1/test_reminder_CalendarType_Cal0/verification.txt'))
browser_context = <BrowserContext browser=<Browser type=<BrowserType name=chromium executable_path=C:\Users\runneradmin\AppData\Local\ms-playwright\chromium-1140\chrome-win\chrome.exe> version=130.0.6723.31>>
@pytest.fixture(params=[CalendarType.Outlook365, CalendarType.CalDAV])
def configured_cli_no_bg_jobs(request, start_commands, stop_commands, browser_context) -> ConfiguredCLI:
> yield from configured_cli(request.param, skip_background_scheduler_setup=True, start_commands=start_commands,
stop_commands=stop_commands, browser_context=browser_context)
tests\conftest.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests\conftest.py:196: in configured_cli
write_line_to_stream(config_process.stdin, config.dnd_profile_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
stream = <_io.TextIOWrapper name=30 encoding='cp1252'>, input = 'prio-only'
def write_line_to_stream(stream: IO, input: Any):
stream.write(str(input) + '\n')
> stream.flush()
E OSError: [Errno 22] Invalid argument
tests\conftest.py:92: OSError
Check failure on line 0 in end2end.test_uninstall.TestUninstallSyncCommand
github-actions / Test Results
1 out of 2 runs with error: test_uninstall[CalendarType.Outlook365-chromium] (end2end.test_uninstall.TestUninstallSyncCommand)
artifacts/Test Results (windows-latest)/test-results.xml [took 2s]
Raw output
failed on setup with "OSError: [Errno 22] Invalid argument"
request = <SubRequest 'configured_cli_with_bg_jobs' for <Function test_uninstall[CalendarType.Outlook365-chromium]>>
start_commands = ConfiguredCommands(commands=['dnd-start', 'echo start>> C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runner...Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-1/test_uninstall_CalendarType_Ou0/verification.txt'))
stop_commands = ConfiguredCommands(commands=['dnd-stop', 'echo stop>> C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runnerad...Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-1/test_uninstall_CalendarType_Ou0/verification.txt'))
browser_context = <BrowserContext browser=<Browser type=<BrowserType name=chromium executable_path=C:\Users\runneradmin\AppData\Local\ms-playwright\chromium-1140\chrome-win\chrome.exe> version=130.0.6723.31>>
@pytest.fixture(params=[CalendarType.Outlook365])
def configured_cli_with_bg_jobs(request, start_commands, stop_commands, browser_context) -> ConfiguredCLI:
> yield from configured_cli(request.param, skip_background_scheduler_setup=False, start_commands=start_commands,
stop_commands=stop_commands, browser_context=browser_context)
tests\conftest.py:110:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests\conftest.py:196: in configured_cli
write_line_to_stream(config_process.stdin, config.dnd_profile_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
stream = <_io.TextIOWrapper name=15 encoding='cp1252'>, input = 'prio-only'
def write_line_to_stream(stream: IO, input: Any):
stream.write(str(input) + '\n')
> stream.flush()
E OSError: [Errno 22] Invalid argument
tests\conftest.py:92: OSError
Check warning on line 0 in library.test_caldav_client.TestCalDavClient
github-actions / Test Results
1 out of 2 runs failed: test_create_with_reminder (library.test_caldav_client.TestCalDavClient)
artifacts/Test Results (macos-latest)/test-results.xml [took 7s]
Raw output
assert 3 == 1
+ where 3 = len([Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/d3c0f1f4-9bac-11ef-9e0e-fa017888627c.ics), Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/d4225660-9bac-11ef-a94a-fa017888627c.ics), Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/d448bfb2-9bac-11ef-a649-fa017888627c.ics)])
self = <tests.library.test_caldav_client.TestCalDavClient object at 0x11057c200>
caldav_calendar = Calendar(https://nextcloud05.webo.cloud:443/remote.php/dav/calendars/focustimerobot/unittests/)
def test_create_with_reminder(self, caldav_calendar: caldav.Calendar):
"""
Creates an event that has a reminder time set, then reads the event, verifying that the reminder is really set.
Finally, removes the reminder again.
"""
start = now_without_micros()
end = start + timedelta(minutes=2)
summary = "Event with reminder"
# Note: save_event() does not support adding reminders (iCal-speak: "alarm") directly
# (see https://github.com/python-caldav/caldav/issues/132), thus we have to create the event without an alarm
# and then add the alarm afterward
event = caldav_calendar.save_event(dtstart=start, dtend=end, summary=summary)
ia = icalendar.Alarm()
ia.add("action", "DISPLAY")
ia.add("trigger", timedelta(minutes=-15))
event.icalendar_component.add_component(ia)
event.save()
# Verify that the reminder is really set
search_start, search_end = get_typical_search_time_window()
events = caldav_calendar.search(start=search_start, end=search_end, event=True, expand=True)
> assert len(events) == 1
E assert 3 == 1
E + where 3 = len([Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/d3c0f1f4-9bac-11ef-9e0e-fa017888627c.ics), Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/d4225660-9bac-11ef-a94a-fa017888627c.ics), Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/d448bfb2-9bac-11ef-a649-fa017888627c.ics)])
tests/library/test_caldav_client.py:99: AssertionError
Check warning on line 0 in library.test_caldav_client.TestCalDavClient
github-actions / Test Results
1 out of 2 runs failed: test_update_event (library.test_caldav_client.TestCalDavClient)
artifacts/Test Results (macos-latest)/test-results.xml [took 6s]
Raw output
assert 2 == 1
+ where 2 = len([Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/d8402dbc-9bac-11ef-a94a-fa017888627c.ics), Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/d84c522c-9bac-11ef-9e0e-fa017888627c.ics)])
self = <tests.library.test_caldav_client.TestCalDavClient object at 0x11057c3e0>
caldav_calendar = Calendar(https://nextcloud05.webo.cloud:443/remote.php/dav/calendars/focustimerobot/unittests/)
def test_update_event(self, caldav_calendar: caldav.Calendar):
"""
Creates an event, saves it, then changes the start date, saves the changes, and verifies that the changes have
been applied successfully.
"""
now = now_without_micros()
start = now
end = start + timedelta(minutes=10)
event = caldav_calendar.save_event(dtstart=start, dtend=end, summary="Event")
updated_start = start + timedelta(minutes=2)
event.icalendar_component["dtstart"].dt = updated_start
event.save()
# Verify that the reminder is really set
search_start, search_end = get_typical_search_time_window()
events = caldav_calendar.search(start=search_start, end=search_end, event=True, expand=True)
> assert len(events) == 1
E assert 2 == 1
E + where 2 = len([Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/d8402dbc-9bac-11ef-a94a-fa017888627c.ics), Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/d84c522c-9bac-11ef-9e0e-fa017888627c.ics)])
tests/library/test_caldav_client.py:132: AssertionError
Check warning on line 0 in library.test_caldav_client.TestCalDavClient
github-actions / Test Results
1 out of 2 runs failed: test_sorting_by_date (library.test_caldav_client.TestCalDavClient)
artifacts/Test Results (macos-latest)/test-results.xml [took 6s]
Raw output
assert 4 == 2
+ where 4 = len([Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/dc5ac27c-9bac-11ef-a94a-fa017888627c.ics), Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/dc6e6b56-9bac-11ef-9e0e-fa017888627c.ics), Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/dc35802a-9bac-11ef-a94a-fa017888627c.ics), Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/dc454abe-9bac-11ef-9e0e-fa017888627c.ics)])
self = <tests.library.test_caldav_client.TestCalDavClient object at 0x11057c5c0>
caldav_calendar = Calendar(https://nextcloud05.webo.cloud:443/remote.php/dav/calendars/focustimerobot/unittests/)
def test_sorting_by_date(self, caldav_calendar: caldav.Calendar):
"""
Creates multiple events, retrieves them, and verifies that the CalDAV library applies the date-based sorting
properly.
"""
now = now_without_micros()
start1 = now + timedelta(minutes=30)
end1 = start1 + timedelta(minutes=10)
start2 = now
end2 = start2 + timedelta(minutes=10)
# Note: save_event() does not support adding reminders (iCal-speak: "alarm") directly
# (see https://github.com/python-caldav/caldav/issues/132), thus we have to create the event without an alarm
# and then add the alarm afterward
event1 = caldav_calendar.save_event(dtstart=start1, dtend=end1, summary="Event 1")
event2 = caldav_calendar.save_event(dtstart=start2, dtend=end2, summary="Event 2")
# Verify that the events are returned with the start time in ascending order
search_start, search_end = get_typical_search_time_window()
events = caldav_calendar.search(start=search_start, end=search_end, event=True, expand=True,
sort_keys=("dtstart",))
> assert len(events) == 2
E assert 4 == 2
E + where 4 = len([Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/dc5ac27c-9bac-11ef-a94a-fa017888627c.ics), Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/dc6e6b56-9bac-11ef-9e0e-fa017888627c.ics), Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/dc35802a-9bac-11ef-a94a-fa017888627c.ics), Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/dc454abe-9bac-11ef-9e0e-fa017888627c.ics)])
tests/library/test_caldav_client.py:158: AssertionError
Check warning on line 0 in library.test_caldav_client.TestCalDavClient
github-actions / Test Results
1 out of 2 runs failed: test_filtering_by_summary (library.test_caldav_client.TestCalDavClient)
artifacts/Test Results (macos-latest)/test-results.xml [took 6s]
Raw output
assert 3 == 2
+ where 3 = len([Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/e015b462-9bac-11ef-9e0e-fa017888627c.ics), Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/e039a0ca-9bac-11ef-a94a-fa017888627c.ics), Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/e05aa0ae-9bac-11ef-a94a-fa017888627c.ics)])
self = <tests.library.test_caldav_client.TestCalDavClient object at 0x11057c7a0>
caldav_calendar = Calendar(https://nextcloud05.webo.cloud:443/remote.php/dav/calendars/focustimerobot/unittests/)
def test_filtering_by_summary(self, caldav_calendar: caldav.Calendar):
"""
Creates two events with different subjects, then retrieves the events using a filter that should only match
one event. However, the test (Nextcloud) server does not honor the filter query sent to it, and still returns
both events, meaning that client-side filtering is highly recommended.
"""
start = now_without_micros()
end = start + timedelta(minutes=10)
event_foo = caldav_calendar.save_event(dtstart=start, dtend=end, summary="Foo")
event_bar = caldav_calendar.save_event(dtstart=start, dtend=end, summary="Bar")
assert event_foo.id != event_bar.id
search_start, search_end = get_typical_search_time_window()
events = caldav_calendar.search(start=search_start, end=search_end, event=True, expand=True, summary="Foo")
> assert len(events) == 2
E assert 3 == 2
E + where 3 = len([Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/e015b462-9bac-11ef-9e0e-fa017888627c.ics), Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/e039a0ca-9bac-11ef-a94a-fa017888627c.ics), Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/e05aa0ae-9bac-11ef-a94a-fa017888627c.ics)])
tests/library/test_caldav_client.py:177: AssertionError
Check notice on line 0 in .github
github-actions / Test Results
25 tests found
There are 25 tests, see "Raw output" for the full list of tests.
Raw output
end2end.test_start_stop.TestCLIStartStopCommand ‑ test_start_stop_simple[CalendarType.CalDAV-chromium]
end2end.test_start_stop.TestCLIStartStopCommand ‑ test_start_stop_simple[CalendarType.Outlook365-chromium]
end2end.test_sync.TestCLISyncCommand ‑ test_automated_on_off_sync[CalendarType.Outlook365-chromium]
end2end.test_sync.TestCLISyncCommand ‑ test_manual_on_off_sync[CalendarType.CalDAV-chromium]
end2end.test_sync.TestCLISyncCommand ‑ test_manual_on_off_sync[CalendarType.Outlook365-chromium]
end2end.test_sync.TestCLISyncCommand ‑ test_reminder[CalendarType.CalDAV-chromium]
end2end.test_sync.TestCLISyncCommand ‑ test_reminder[CalendarType.Outlook365-chromium]
end2end.test_uninstall.TestUninstallSyncCommand ‑ test_uninstall[CalendarType.Outlook365-chromium]
library.test_caldav_client.TestCalDavClient ‑ test_create_read_delete_event
library.test_caldav_client.TestCalDavClient ‑ test_create_with_reminder
library.test_caldav_client.TestCalDavClient ‑ test_filtering_by_summary
library.test_caldav_client.TestCalDavClient ‑ test_sorting_by_date
library.test_caldav_client.TestCalDavClient ‑ test_update_event
test_calendar.TestCalendar ‑ test_active_focus_time
test_calendar.TestCalendar ‑ test_adapter_query_timeframes[CalendarType.CalDAV-chromium]
test_calendar.TestCalendar ‑ test_adapter_query_timeframes[CalendarType.Outlook365-chromium]
test_calendar.TestCalendar ‑ test_adapter_remove_event[CalendarType.CalDAV-chromium]
test_calendar.TestCalendar ‑ test_adapter_remove_event[CalendarType.Outlook365-chromium]
test_calendar.TestCalendar ‑ test_adapter_remove_non_existent_event[CalendarType.CalDAV-chromium]
test_calendar.TestCalendar ‑ test_adapter_remove_non_existent_event[CalendarType.Outlook365-chromium]
test_calendar.TestCalendar ‑ test_adapter_update_event[CalendarType.CalDAV-chromium]
test_calendar.TestCalendar ‑ test_adapter_update_event[CalendarType.Outlook365-chromium]
test_command_executor.TestCommandExecutor ‑ test_commands
test_persistence.TestPersistence ‑ test_ongoing_focus_time
test_persistence.TestPersistence ‑ test_store_load_configuration