From 1eed6af952c81656c0485e0c830a66be5f802369 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sun, 1 Feb 2026 13:30:42 +0300 Subject: [PATCH] poetry run black . reformatted docs\source\conf.py reformatted tests\test_converter.py --- docs/source/conf.py | 1 - tests/test_converter.py | 32 +++++++------------------------- 2 files changed, 7 insertions(+), 26 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index f17e03f..13c3fa2 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -9,7 +9,6 @@ import importlib from typing import List - project = "sync_ics2gcal" copyright = "2023, b4tman" author = "b4tman" diff --git a/tests/test_converter.py b/tests/test_converter.py index 60a4adb..39c2723 100644 --- a/tests/test_converter.py +++ b/tests/test_converter.py @@ -8,45 +8,27 @@ from sync_ics2gcal import CalendarConverter from sync_ics2gcal.ical import format_datetime_utc uid = "UID:uisgtr8tre93wewe0yr8wqy@test.com" -only_start_date = ( - uid - + """ +only_start_date = uid + """ DTSTART;VALUE=DATE:20180215 """ -) -date_val = ( - only_start_date - + """ +date_val = only_start_date + """ DTEND;VALUE=DATE:20180217 """ -) -date_duration = ( - only_start_date - + """ +date_duration = only_start_date + """ DURATION:P2D """ -) -datetime_utc_val = ( - uid - + """ +datetime_utc_val = uid + """ DTSTART;VALUE=DATE-TIME:20180319T092001Z DTEND:20180321T102501Z """ -) -datetime_utc_duration = ( - uid - + """ +datetime_utc_duration = uid + """ DTSTART;VALUE=DATE-TIME:20180319T092001Z DURATION:P2DT1H5M """ -) -created_updated = ( - date_val - + """ +created_updated = date_val + """ CREATED:20180320T071155Z LAST-MODIFIED:20180326T120235Z """ -) def ics_test_cal(content: str) -> str: @@ -107,7 +89,7 @@ def param_events_start_end(request: Any) -> Any: def test_event_start_end(param_events_start_end: Tuple[str, str, str, str]) -> None: - (date_type, ics_str, start, end) = param_events_start_end + date_type, ics_str, start, end = param_events_start_end converter = CalendarConverter() converter.loads(ics_str) events = converter.events_to_gcal()