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

Add unit tests for bobbit.message #25

Merged
merged 4 commits into from
Oct 7, 2020
Merged

Conversation

shawalli
Copy link
Contributor

@shawalli shawalli commented Oct 6, 2020

This PR adds unit tests for bobbit.message. Addresses task in #17.

Regarding the boolean change -- In python not values include a variety of things, such as 0, empty strings, empty dicts, empty lists, False, None, and more, I'm sure. As originally written, both False and None arguments would cause the copy logic to defer to the original Message's value, instead of just None arguments. The copy code was updated to explicitly check for None. It would also make sense to update these checks for empty strings, however, I'm assuming the code wouldn't normally pass empty nicks, channels, etc.

src/bobbit/message.py Outdated Show resolved Hide resolved
src/bobbit/message.py Outdated Show resolved Hide resolved
@pbui pbui merged commit 2885f22 into pbui:bobbit-0.2.x Oct 7, 2020
@pbui
Copy link
Owner

pbui commented Oct 7, 2020

@shawalli Once again, thank you for your contribution.

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.

2 participants