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

Fix default styles not being reset between set_style() calls #344

Merged
merged 4 commits into from
Jan 23, 2025

Conversation

MonstersInc-sudo
Copy link
Contributor

Looks to fix issue as outlined in Issue 341

Addition of pytest tests for testing if default has been reset after initially having another style. The case of random is tested, but frankly a redundant test as other cases cover every scenario of a reset.

Added resetting of styles in the set_style method along with removal of the default_reset in the orgmode setter.

@MonstersInc-sudo MonstersInc-sudo changed the title fix bug-341 with written tests Fix bug #341 - fix issue with default styles not being reset betweeen set_style() calls Dec 9, 2024
Copy link

codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Flag Coverage Δ
macos-latest 94.75% <100.00%> (+0.01%) ⬆️
ubuntu-latest 94.75% <100.00%> (+0.01%) ⬆️
windows-latest 94.71% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/prettytable/prettytable.py 91.23% <100.00%> (-0.01%) ⬇️
tests/test_prettytable.py 100.00% <100.00%> (ø)

@hugovk hugovk added the changelog: Fixed For any bug fixes label Jan 23, 2025
@hugovk hugovk changed the title Fix bug #341 - fix issue with default styles not being reset betweeen set_style() calls Fix default styles not being reset between set_style() calls Jan 23, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@hugovk hugovk merged commit 920cc8d into prettytable:main Jan 23, 2025
28 checks passed
@hugovk
Copy link
Collaborator

hugovk commented Jan 23, 2025

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: Fixed For any bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants