Skip to content

Tests fuzzing properties - #2223

Open
AlexandrePic-03 wants to merge 3 commits into
PyCalendar:mainfrom
AlexandrePic-03:tests-fuzzing-properties
Open

AlexandrePic-03 wants to merge 3 commits into
PyCalendar:mainfrom
AlexandrePic-03:tests-fuzzing-properties

Conversation

@AlexandrePic-03

@AlexandrePic-03 AlexandrePic-03 commented Dec 5, 2026 •

Copy link
Copy Markdown

Linked issue

Description

This pull request improves property testing in the fuzzer.

The changes include:

  • Walking through all components of the calendar instead of only VEVENT components.
  • Calling to_ical() on each component.
  • Inspecting all Python properties defined on each component class and accessing them to detect potential errors.
  • Adding tests to ensure that every component property is inspected by the fuzzer.
  • Defining an expected list of properties for each component class, so that newly added or missing properties are detected by the tests.

Checklist

Additional information

The targeted fuzzing tests pass successfully (2 passed).

The full test suite reports one failure:
src/icalendar/tests/rfc_6321_xcal/prop/test_binary.py::test_invalid_value_from_xcal[MTIz=]

This same failure was observed in a previous test report and is unrelated to the changes in this pull request.

I used GPT-6 to test the fuzzer property coverage for issue #1475. I reviewed the generated code and take responsibility for the changes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test properties in fuzzer

1 participant