Skip to content

Add tests for uncovered vAdr and vN branches - #2115

Open
Satorino01 wants to merge 2 commits into
PyCalendar:mainfrom
Satorino01:test/698-vcard-coverage
Open

Satorino01 wants to merge 2 commits into
PyCalendar:mainfrom
Satorino01:test/698-vcard-coverage

Conversation

@Satorino01

Copy link
Copy Markdown

Linked issue

Description

Cover vAdr and vN equality and rejection of incorrect field counts in serialized input, including vN jCal input.

I used OpenAI Codex (GPT-6) to identify uncovered paths, draft the tests and news entry, and check the changes.

Checklist

  • I added a change log entry, following the instructions in all subsections under Change log requirements.
  • I followed icalendar's Artificial intelligence policy and disclosed my Responsible AI use in my commit messages, if applicable.
  • I added or updated tests, if applicable.
  • I ran and ensured all tests pass locally by following Run tests.
  • I added or edited documentation as necessary, both as docstrings to be rendered in the API documentation and narrative documentation, following the Style guide.

Cover equality and invalid field counts in serialized input.

Refs PyCalendar#698.

AI disclosure: OpenAI Codex (GPT-6) identified uncovered paths, drafted
the tests and news entry, and helped review and check the changes.
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the pull request, @Satorino01! A maintainer will review it shortly.

@github-actions

Copy link
Copy Markdown
Contributor

Insufficient data

Not enough activity yet to make a reliable assessment.

View full analysis →

This is an automated analysis by AgentScan

@SemTiOne SemTiOne left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good. Just the changelog.

Comment thread news/698.chore.4 Outdated
@@ -0,0 +1 @@
Added tests for equality and invalid field counts in :class:`~icalendar.prop.adr.vAdr` and :class:`~icalendar.prop.n.vN`. Drafted with OpenAI Codex (GPT-6). @Satorino01

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current changelog guide uses :user: for attribution. Please also rename the fragment to 698.chore.

Suggested change
Added tests for equality and invalid field counts in :class:`~icalendar.prop.adr.vAdr` and :class:`~icalendar.prop.n.vN`. Drafted with OpenAI Codex (GPT-6). @Satorino01
Added tests for equality and invalid field counts in :class:`~icalendar.prop.adr.vAdr` and :class:`~icalendar.prop.n.vN`. Drafted with OpenAI Codex (GPT-6). :user:`Satorino01`

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed both.

AI disclosure: OpenAI Codex (GPT-6) helped apply the review feedback
to the changelog fragment.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants