• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

collective / icalendar / 31139841965
98%

Build:
DEFAULT BRANCH: main
Ran 07 Aug 2026 02:01AM UTC
Jobs 7
Files 251
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Aug 2026 02:00AM UTC coverage: 98.066% (+0.002%) from 98.064%
31139841965

push

github

web-flow
feat: Add example() to Journal and FreeBusy (#1632)

Journal and FreeBusy were the only two components in icalendar.cal without
an example() classmethod. This adds them, following the existing
Todo.example() pattern, together with the RFC 5545 example files they load
and usage examples in both class docstrings.

- src/icalendar/tests/journals/example.ics is the RFC 5545, Section 3.6.3
  journal example. Its DESCRIPTION is shortened to one sentence so that the
  docstring example stays unfolded and readable.
- src/icalendar/tests/freebusy/example.ics is the RFC 5545, Section 3.6.4
  free/busy example, verbatim, including its three FREEBUSY periods.
- conftest.py gains journals and freebusy DataSource fixtures so the new
  examples are checked by test_component_has_examples in the same way as the
  existing ones, and both components are added to test_default_example.

See #743. This addresses the Journal and FreeBusy items of that checklist.

AI model: Kiro CLI with claude-opus-5.

How I used it, summarized: I asked it to confirm that issue #743 was still
unclaimed for these components, to verify at main that journal.py and
free_busy.py were the only cal components lacking example(), and then to
implement the Journal and FreeBusy items by mirroring Todo.example(), taking
the example data from RFC 5545 and wiring the new examples into
test_examples.py. The expected output in the docstrings was generated by
running the code rather than written by hand.

Output: (this commit)

I reviewed and validated the output. Running
"pytest src/icalendar/tests/test_examples.py src/icalendar/tests/test_docstrings.py"
goes from 1745 to 1755 passed with no failures; the icalendar.cal.journal and
icalendar.cal.free_busy doctests pass; and reverting only journal.py and
free_busy.py while keeping the tests makes exactly the 10 new cases fail with
"AttributeError: type object 'Journal' has no attribute 'example'". The full
suite shows the same 1203 pre-existing failures befo... (continued)

849 of 869 branches covered (97.7%)

Branch coverage included in aggregate %.

13957 of 14229 relevant lines covered (98.09%)

6.86 hits per line

Coverage Regressions

Lines Coverage ∆ File
12
95.25
0.13% src/icalendar/tests/conftest.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.11 - 31139841965.1 07 Aug 2026 02:03AM UTC 251
98.03
GitHub Action Run
2 run-3.13 - 31139841965.2 07 Aug 2026 02:02AM UTC 251
98.03
GitHub Action Run
3 run-pypy3 - 31139841965.3 07 Aug 2026 02:13AM UTC 251
98.03
GitHub Action Run
4 run-3.14 - 31139841965.4 07 Aug 2026 02:01AM UTC 251
98.01
GitHub Action Run
5 run-3.10 (nopytz) - 31139841965.5 07 Aug 2026 02:03AM UTC 251
98.07
GitHub Action Run
6 run-3.12 - 31139841965.6 07 Aug 2026 02:02AM UTC 251
98.03
GitHub Action Run
7 run-3.10 - 31139841965.7 07 Aug 2026 02:02AM UTC 251
98.07
GitHub Action Run
Source Files on build 31139841965
  • Tree
  • List 251
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31139841965
  • 0e1bc81e on github
  • Prev Build on main (#31138888247)
  • Next Build on main (#31140705037)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc