Skip to content
Snippets Groups Projects
Commit 1a4d0953 authored by jan.bednarik's avatar jan.bednarik
Browse files

Fix requirement to icalevents

parent 153452f1
No related branches found
No related tags found
2 merge requests!787Release,!748Fix requirement to icalevents
Pipeline #12321 passed
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
line_length = 88 line_length = 88
multi_line_output = 3 multi_line_output = 3
include_trailing_comma = true include_trailing_comma = true
known_third_party = PyPDF2,arrow,bleach,bs4,captcha,celery,dateutil,django,environ,faker,fastjsonschema,icalevnt,markdown,modelcluster,pirates,pytest,pytz,requests,requests_cache,sentry_sdk,taggit,wagtail,wagtailmetadata,weasyprint,yaml known_third_party = PyPDF2,arrow,bleach,bs4,captcha,celery,dateutil,django,environ,faker,fastjsonschema,icalevents,markdown,modelcluster,pirates,pytest,pytz,requests,requests_cache,sentry_sdk,taggit,wagtail,wagtailmetadata,weasyprint,yaml
...@@ -3,7 +3,7 @@ from datetime import date, timedelta ...@@ -3,7 +3,7 @@ from datetime import date, timedelta
import arrow import arrow
from django.db import migrations from django.db import migrations
from icalevnt import icalevents from icalevents import icalevents
from calendar_utils.parser import process_event_list from calendar_utils.parser import process_event_list
......
...@@ -4,7 +4,7 @@ from datetime import date, timedelta ...@@ -4,7 +4,7 @@ from datetime import date, timedelta
import arrow import arrow
from django.core.serializers.json import DjangoJSONEncoder from django.core.serializers.json import DjangoJSONEncoder
from django.db import models from django.db import models
from icalevnt import icalevents from icalevents import icalevents
from .parser import process_event_list from .parser import process_event_list
......
...@@ -7,7 +7,7 @@ import bleach ...@@ -7,7 +7,7 @@ import bleach
from django.conf import settings from django.conf import settings
if TYPE_CHECKING: if TYPE_CHECKING:
from icalevnt.icalparser import Event from icalevents.icalparser import Event
EVENT_KEYS = ("start", "end", "all_day", "summary", "description", "location") EVENT_KEYS = ("start", "end", "all_day", "summary", "description", "location")
......
...@@ -13,7 +13,7 @@ whitenoise ...@@ -13,7 +13,7 @@ whitenoise
opencv-python opencv-python
requests requests
requests-cache requests-cache
icalevnt icalevents
ics ics
arrow arrow
sentry-sdk sentry-sdk
......
...@@ -70,8 +70,8 @@ cryptography==40.0.1 ...@@ -70,8 +70,8 @@ cryptography==40.0.1
# pyopenssl # pyopenssl
cssselect2==0.7.0 cssselect2==0.7.0
# via weasyprint # via weasyprint
datetime==4.3 datetime==4.9
# via icalevnt # via icalevents
decorator==5.1.1 decorator==5.1.1
# via ipython # via ipython
django==4.1.8 django==4.1.8
...@@ -131,11 +131,11 @@ html5lib==1.1 ...@@ -131,11 +131,11 @@ html5lib==1.1
# via # via
# wagtail # wagtail
# weasyprint # weasyprint
httplib2==0.20.1 httplib2==0.20.4
# via icalevnt # via icalevents
icalendar==4.0.8 icalendar==4.0.9
# via icalevnt # via icalevents
icalevnt==0.1.26 icalevents==0.1.27
# via -r base.in # via -r base.in
ics==0.7.2 ics==0.7.2
# via -r base.in # via -r base.in
...@@ -200,7 +200,7 @@ pygments==2.15.0 ...@@ -200,7 +200,7 @@ pygments==2.15.0
# via ipython # via ipython
pyopenssl==23.1.1 pyopenssl==23.1.1
# via josepy # via josepy
pyparsing==2.4.7 pyparsing==3.0.9
# via httplib2 # via httplib2
pypdf2==3.0.1 pypdf2==3.0.1
# via -r base.in # via -r base.in
...@@ -210,7 +210,7 @@ python-dateutil==2.8.2 ...@@ -210,7 +210,7 @@ python-dateutil==2.8.2
# via # via
# arrow # arrow
# icalendar # icalendar
# icalevnt # icalevents
# ics # ics
pytz==2021.3 pytz==2021.3
# via # via
...@@ -219,7 +219,7 @@ pytz==2021.3 ...@@ -219,7 +219,7 @@ pytz==2021.3
# django-modelcluster # django-modelcluster
# djangorestframework # djangorestframework
# icalendar # icalendar
# icalevnt # icalevents
# l18n # l18n
pyyaml==6.0 pyyaml==6.0
# via -r base.in # via -r base.in
......
...@@ -28,7 +28,7 @@ inflection==0.5.1 ...@@ -28,7 +28,7 @@ inflection==0.5.1
# via pytest-factoryboy # via pytest-factoryboy
iniconfig==2.0.0 iniconfig==2.0.0
# via pytest # via pytest
packaging==23.0 packaging==23.1
# via # via
# pytest # pytest
# pytest-sugar # pytest-sugar
......
...@@ -3,7 +3,7 @@ from datetime import datetime ...@@ -3,7 +3,7 @@ from datetime import datetime
from pathlib import Path from pathlib import Path
import pytest import pytest
from icalevnt.icalparser import Event from icalevents.icalparser import Event
@pytest.fixture(scope="session") @pytest.fixture(scope="session")
......
from datetime import datetime from datetime import datetime
from zoneinfo import ZoneInfo
import arrow
import pytest import pytest
from icalevnt.icalparser import Event from icalevents.icalparser import Event
from calendar_utils.parser import ( from calendar_utils.parser import (
process_event_list, process_event_list,
...@@ -20,7 +18,7 @@ def test_split_events(sample_response, sample_future_events, sample_past_events) ...@@ -20,7 +18,7 @@ def test_split_events(sample_response, sample_future_events, sample_past_events)
@pytest.mark.freeze_time("2022-05-13") @pytest.mark.freeze_time("2022-05-13")
def test_split_events(sample_events, sample_future_events, sample_past_events): def test_split_dist_list(sample_events, sample_future_events, sample_past_events):
past_events, future_events = split_event_dict_list(sample_events) past_events, future_events = split_event_dict_list(sample_events)
assert sample_past_events == past_events assert sample_past_events == past_events
assert sample_future_events == future_events assert sample_future_events == future_events
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment