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 @@
line_length = 88
multi_line_output = 3
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
import arrow
from django.db import migrations
from icalevnt import icalevents
from icalevents import icalevents
from calendar_utils.parser import process_event_list
......
......@@ -4,7 +4,7 @@ from datetime import date, timedelta
import arrow
from django.core.serializers.json import DjangoJSONEncoder
from django.db import models
from icalevnt import icalevents
from icalevents import icalevents
from .parser import process_event_list
......
......@@ -7,7 +7,7 @@ import bleach
from django.conf import settings
if TYPE_CHECKING:
from icalevnt.icalparser import Event
from icalevents.icalparser import Event
EVENT_KEYS = ("start", "end", "all_day", "summary", "description", "location")
......
......@@ -13,7 +13,7 @@ whitenoise
opencv-python
requests
requests-cache
icalevnt
icalevents
ics
arrow
sentry-sdk
......
......@@ -70,8 +70,8 @@ cryptography==40.0.1
# pyopenssl
cssselect2==0.7.0
# via weasyprint
datetime==4.3
# via icalevnt
datetime==4.9
# via icalevents
decorator==5.1.1
# via ipython
django==4.1.8
......@@ -131,11 +131,11 @@ html5lib==1.1
# via
# wagtail
# weasyprint
httplib2==0.20.1
# via icalevnt
icalendar==4.0.8
# via icalevnt
icalevnt==0.1.26
httplib2==0.20.4
# via icalevents
icalendar==4.0.9
# via icalevents
icalevents==0.1.27
# via -r base.in
ics==0.7.2
# via -r base.in
......@@ -200,7 +200,7 @@ pygments==2.15.0
# via ipython
pyopenssl==23.1.1
# via josepy
pyparsing==2.4.7
pyparsing==3.0.9
# via httplib2
pypdf2==3.0.1
# via -r base.in
......@@ -210,7 +210,7 @@ python-dateutil==2.8.2
# via
# arrow
# icalendar
# icalevnt
# icalevents
# ics
pytz==2021.3
# via
......@@ -219,7 +219,7 @@ pytz==2021.3
# django-modelcluster
# djangorestframework
# icalendar
# icalevnt
# icalevents
# l18n
pyyaml==6.0
# via -r base.in
......
......@@ -28,7 +28,7 @@ inflection==0.5.1
# via pytest-factoryboy
iniconfig==2.0.0
# via pytest
packaging==23.0
packaging==23.1
# via
# pytest
# pytest-sugar
......
......@@ -3,7 +3,7 @@ from datetime import datetime
from pathlib import Path
import pytest
from icalevnt.icalparser import Event
from icalevents.icalparser import Event
@pytest.fixture(scope="session")
......
from datetime import datetime
from zoneinfo import ZoneInfo
import arrow
import pytest
from icalevnt.icalparser import Event
from icalevents.icalparser import Event
from calendar_utils.parser import (
process_event_list,
......@@ -20,7 +18,7 @@ def test_split_events(sample_response, sample_future_events, sample_past_events)
@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)
assert sample_past_events == past_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