Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved test coverage in 5 places for production code #696

Merged
merged 10 commits into from
Jul 25, 2024

Conversation

mtrd3v
Copy link
Contributor

@mtrd3v mtrd3v commented Jul 25, 2024

This PR fixes issue #629 by Improving test coverage in 5 places for production code


📚 Documentation preview 📚: https://icalendar--696.org.readthedocs.build/

@coveralls
Copy link

coveralls commented Jul 25, 2024

Pull Request Test Coverage Report for Build 10100505716

Details

  • 18 of 18 (100.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 97.603%

Totals Coverage Status
Change from base Build 10021630821: 0.2%
Covered Lines: 3176
Relevant Lines: 3254

💛 - Coveralls

@niccokunzmann
Copy link
Member

niccokunzmann commented Jul 25, 2024 via email

@mtrd3v
Copy link
Contributor Author

mtrd3v commented Jul 25, 2024

Thanks for reviewing my PR. I have corrected them.

@niccokunzmann
Copy link
Member

Could you merge master?

Copy link
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, I made the changes clearer that I would like to see. Do you think this can be implemented in this pull request?

It is strictly not what the issue said, so I could merge it and create a first-timer issue instead.

What do you prefer?


def test_repr():
instance = vBinary("value")
assert repr(instance) == "vBinary('b'value'')"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
assert repr(instance) == "vBinary('b'value'')"
assert repr(instance) == "vBinary(b'value')"

src/icalendar/tests/prop/test_vCalAddress.py Outdated Show resolved Hide resolved
@mtrd3v
Copy link
Contributor Author

mtrd3v commented Jul 25, 2024

I have fixed the issue. Now you can check.

@niccokunzmann
Copy link
Member

@mtr-d3v Thanks! I just merged master so there is no conflict. It seems that the tests are updated and fail.

Could you install tox and run the tests in your local setup?

I am wondering why not all the tests were running before ...

@mtrd3v
Copy link
Contributor Author

mtrd3v commented Jul 25, 2024

I have fixed the repr for vBinary and vCalAddress, the tests should pass now.

@niccokunzmann niccokunzmann merged commit 6d94f5b into collective:main Jul 25, 2024
17 checks passed
@niccokunzmann
Copy link
Member

Thank you very much!

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