diff --git a/.coveragerc b/.coveragerc index 4673dc2..51243ad 100644 --- a/.coveragerc +++ b/.coveragerc @@ -10,4 +10,4 @@ exclude_lines = if __name__ == .__main__.: ignore_errors = True omit = - tests/* \ No newline at end of file + tests/* diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 54e319b..e49f459 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -29,7 +29,7 @@ jobs: pip install build - name: Build package run: python -m build - + - name: Upload packages to Jazzband if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') @@ -37,4 +37,4 @@ jobs: with: user: jazzband password: ${{ secrets.JAZZBAND_RELEASE_KEY }} - repository_url: https://jazzband.co/projects/django-formtools/upload + repository_url: https://jazzband.co/projects/django-formtools/upload diff --git a/.gitignore b/.gitignore index 0dbb58f..e126df8 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,4 @@ icalevents.egg-info/* /build docs/_build/** -coverage.xml \ No newline at end of file +coverage.xml diff --git a/docs/conf.py b/docs/conf.py index 12cc5d7..f2b1d94 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -58,4 +58,4 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] \ No newline at end of file +html_static_path = ['_static'] diff --git a/docs/index.rst b/docs/index.rst index 042aa7c..e9ad1ef 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -16,7 +16,7 @@ iCloud: ------- .. code:: python - + from icalevents.icalevents import events es = events(, fix_apple=True) diff --git a/test/test_data/categories_test.ics b/test/test_data/categories_test.ics index 756d8f6..c1e2e76 100644 --- a/test/test_data/categories_test.ics +++ b/test/test_data/categories_test.ics @@ -24,4 +24,4 @@ DTSTART:20201118T021500Z DTEND:20201118T041500Z CATEGORIES:In19-S04-IT2406,In19-S04-IT2405 END:VEVENT -END:VCALENDAR \ No newline at end of file +END:VCALENDAR diff --git a/test/test_data/icloud.ics b/test/test_data/icloud.ics index 1679376..5075ce3 100644 --- a/test/test_data/icloud.ics +++ b/test/test_data/icloud.ics @@ -246,12 +246,12 @@ DTEND;TZID=Europe/Berlin:20161103T183000 DTSTAMP:20161026T154649Z DTSTART;TZID=Europe/Berlin:20161103T180000 LAST-MODIFIED:20161026T154648Z -LOCATION:Naturpark Altmühltal\nKanalstraße 5\n91757 +LOCATION:Naturpark Altmühltal\nKanalstraße 5\n91757 Treuchtlingen\nDeutschland SEQUENCE:0 SUMMARY:Friseur UID:003AFB7E-BA60-481A-A087-23024D956074 -X-APPLE-STRUCTURED-LOCATION;VALUE=URI;X-ADDRESS=Kanalstraße 5\\n91757 +X-APPLE-STRUCTURED-LOCATION;VALUE=URI;X-ADDRESS=Kanalstraße 5\\n91757 Treuchtlingen\\nDeutschland;X-APPLE-RADIUS=100;X-APPLE-REFERENCEFRAME=1; X-TITLE=Naturpark Altmühltal:geo:48.954682,10.909644 END:VEVENT diff --git a/test/test_data/icloud_content.txt b/test/test_data/icloud_content.txt index aeb9bc1..bed4f1b 100644 --- a/test/test_data/icloud_content.txt +++ b/test/test_data/icloud_content.txt @@ -246,12 +246,12 @@ DTEND;TZID=Europe/Berlin:20161103T183000 DTSTAMP:20161026T154649Z DTSTART;TZID=Europe/Berlin:20161103T180000 LAST-MODIFIED:20161026T154648Z -LOCATION:Naturpark Altmühltal\nKanalstraße 5\n91757 +LOCATION:Naturpark Altmühltal\nKanalstraße 5\n91757 Treuchtlingen\nDeutschland SEQUENCE:0 SUMMARY:Friseur UID:003AFB7E-BA60-481A-A087-23024D956074 -X-APPLE-STRUCTURED-LOCATION;VALUE=URI;X-ADDRESS=Kanalstraße 5\\n91757 +X-APPLE-STRUCTURED-LOCATION;VALUE=URI;X-ADDRESS=Kanalstraße 5\\n91757 Treuchtlingen\\nDeutschland;X-APPLE-RADIUS=100;X-APPLE-REFERENCEFRAME=1; X-TITLE=Naturpark Altmühltal:geo:48.954682,10.909644 END:VEVENT diff --git a/test/test_icaldownload.py b/test/test_icaldownload.py index adbe8f8..908a47f 100644 --- a/test/test_icaldownload.py +++ b/test/test_icaldownload.py @@ -92,4 +92,3 @@ def test_read_only_directory(self): # Delete tmp dir os.chdir("..") shutil.rmtree("tmp") - diff --git a/test/test_icalparser.py b/test/test_icalparser.py index fba9710..7d944ba 100644 --- a/test/test_icalparser.py +++ b/test/test_icalparser.py @@ -100,7 +100,7 @@ def test_attendee(self): def test_organizer(self): self.assertIsInstance(self.eventA.organizer, str) self.assertIsInstance(self.eventB.organizer, str) - + def test_str(self): self.eventA.start = datetime(year=2017, month=2, day=3, hour=12, minute=5) self.eventA.end = datetime(year=2017, month=2, day=3, hour=15, minute=5)