chore(deps): update dependency pywin32 to v308 #505
5 fail, 1 skipped, 19 pass in 27m 20s
Annotations
Check warning on line 0 in library.test_caldav_client.TestCalDavClient
github-actions / Test Results
1 out of 2 runs failed: test_create_read_delete_event (library.test_caldav_client.TestCalDavClient)
artifacts/Test Results (macos-latest)/test-results.xml [took 6s]
Raw output
assert 1 == 0
+ where 1 = len([Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/cf963c60-9bac-11ef-a94a-fa017888627c.ics)])
self = <tests.library.test_caldav_client.TestCalDavClient object at 0x105c28320>
caldav_calendar = Calendar(https://nextcloud05.webo.cloud:443/remote.php/dav/calendars/focustimerobot/unittests/)
def test_create_read_delete_event(self, caldav_calendar: caldav.Calendar):
"""
Tests that creating an event works (we can read it, and it has no reminder set). Then deleting it should work,
and we verify that it can no longer be found.
"""
start = now_without_micros()
end = start + timedelta(minutes=2)
summary = "Some useful subject"
event = caldav_calendar.save_event(dtstart=start, dtend=end, summary=summary)
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
event_component = events[0].icalendar_component
assert event.id == event_component["uid"]
assert start == event_component["dtstart"].dt
assert end == event_component["dtend"].dt
assert summary == event_component["summary"]
assert len(event_component.subcomponents) == 0 # no reminders configured
events[0].delete()
events = caldav_calendar.search(start=search_start, end=search_end, event=True, expand=True)
> assert len(events) == 0
E assert 1 == 0
E + where 1 = len([Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/cf963c60-9bac-11ef-a94a-fa017888627c.ics)])
tests/library/test_caldav_client.py:76: AssertionError
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 0x105c284a0>
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 0x105c28680>
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 0x105c28860>
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 5s]
Raw output
assert 1 == 2
+ where 1 = len([Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/e015b462-9bac-11ef-9e0e-fa017888627c.ics)])
self = <tests.library.test_caldav_client.TestCalDavClient object at 0x105c28a40>
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 1 == 2
E + where 1 = len([Event(https://nextcloud05.webo.cloud/remote.php/dav/calendars/focustimerobot/unittests/e015b462-9bac-11ef-9e0e-fa017888627c.ics)])
tests/library/test_caldav_client.py:177: AssertionError
Check notice on line 0 in .github
github-actions / Test Results
1 skipped test found
There is 1 skipped test, see "Raw output" for the name of the skipped test.
Raw output
end2end.test_sync.TestCLISyncCommand ‑ test_manual_on_off_sync[CalendarType.CalDAV-chromium]
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