Skip to content

Improve test coverage for tools, float, binary, geo and todo - issues…#1291

Merged
niccokunzmann merged 6 commits intocollective:mainfrom
shiva-kumar04:improve-test-coverage-698
Apr 4, 2026
Merged

Improve test coverage for tools, float, binary, geo and todo - issues…#1291
niccokunzmann merged 6 commits intocollective:mainfrom
shiva-kumar04:improve-test-coverage-698

Conversation

@shiva-kumar04
Copy link
Copy Markdown
Contributor

@shiva-kumar04 shiva-kumar04 commented Mar 21, 2026

… 698

Closes issue

Description

Improves test coverage by adding tests for previously uncovered branches. Improves coverage from 96% to 98%

Focus areas:

  • normalize_pytz
  • vFloat.ical_value
  • vBinary.hash
  • vGeo.hash
  • ToDo.duration

Checklist

  • I've added a change log entry to CHANGES.rst.
  • I've added or updated tests if applicable.
  • I've run and ensured all tests pass locally by following Run tests.
  • I've added or edited documentation, both as docstrings to be rendered in the API documentation and narrative documentation, as necessary.

Additional information

beforeCoverage.html

afterCoverage.html

@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community bot commented Mar 21, 2026

Documentation build overview

📚 icalendar | 🛠️ Build #32119795 | 📁 Comparing 91110ef against latest (d08bb43)

  🔍 Preview build  

Show files changed (2 files in total): 📝 2 modified | ➕ 0 added | ➖ 0 deleted
File Status
404.html 📝 modified
reference/changelog.html 📝 modified

@niccokunzmann
Copy link
Copy Markdown
Member

Thanks, I added a few comments.
Also, please format the code: https://github.com/collective/icalendar/actions/runs/23376081732/job/68008197434?pr=1291

@stevepiercy
Copy link
Copy Markdown
Member

@shiva-kumar04 would you please resolve merge conflicts? Take care with CHANGES.rst to ensure entries are preserved. Thank you!

@shiva-kumar04
Copy link
Copy Markdown
Contributor Author

checks are waiting for long time, is there anything to be redone

@stevepiercy
Copy link
Copy Markdown
Member

@shiva-kumar04 the expected checks only trigger after the pull request is approved, to save server resources.

Approval won't happen until you resolve the merge conflicts, to save human resources.

Please let us know, if you need assistance to resolve the merge conflicts. Thank you!

Copy link
Copy Markdown
Member

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

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

Thanks for resolving the merge conflicts. I'll commit these changes.

Copy link
Copy Markdown
Member

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

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

LGTM. @niccokunzmann would you review the changes you requested?

Copy link
Copy Markdown
Member

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

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

@niccokunzmann
Copy link
Copy Markdown
Member

Here, one needs to remove the ()

>       assert vFloat(1.2).ical_value() == 1.2

ical_value is a property, not a method.

niccokunzmann
niccokunzmann previously approved these changes Mar 29, 2026
Copy link
Copy Markdown
Member

@niccokunzmann niccokunzmann left a comment

Choose a reason for hiding this comment

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

Thanks for your PR! It is almost ready to merge!

@shiva-kumar04
Copy link
Copy Markdown
Contributor Author

@niccokunzmann @stevepiercy Thanks for your commments and guidance. Sorry for the delay in response, I'm looking into it and will update shortly

…o improve-test-coverage-698

# Conflicts:
#	CHANGES.rst
#	src/icalendar/tests/prop/test_vBinary.py
@shiva-kumar04
Copy link
Copy Markdown
Contributor Author

I have rebased with the latest main and confirmed my changes pass all logic and formatting checks. Please help me in closing this request.

Copy link
Copy Markdown
Member

@niccokunzmann niccokunzmann left a comment

Choose a reason for hiding this comment

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

Thanks!

@niccokunzmann niccokunzmann enabled auto-merge April 4, 2026 17:41
@shiva-kumar04
Copy link
Copy Markdown
Contributor Author

@stevepiercy i think your approval is also required for the successful merge. Can you please approve.

@niccokunzmann niccokunzmann disabled auto-merge April 4, 2026 19:57
@niccokunzmann niccokunzmann merged commit b3c7df9 into collective:main Apr 4, 2026
18 checks passed
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.

3 participants