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 assert(Not)Equal & add tests #1945

Merged
merged 2 commits into from
Oct 11, 2024
Merged

Fix assert(Not)Equal & add tests #1945

merged 2 commits into from
Oct 11, 2024

Conversation

plajjan
Copy link
Contributor

@plajjan plajjan commented Oct 11, 2024

Now assertEqual & assertNotEqual actually work properly for None values. Previously they only compared correctly for non-None values.

Also added a test of these testing functions.

Now assertEqual & assertNotEqual actually work properly for None values.
Previously they only compared correctly for non-None values.

Also added a test of these testing functions.
Now that assertEqual correctly reports a comparison between a None and
non-None value as not equal, we get a failure here. Updated the expected
value to match what we actually get, which is None and not an empty string.
@plajjan plajjan merged commit 1744a65 into main Oct 11, 2024
23 of 24 checks passed
@plajjan plajjan deleted the test-asserts branch October 11, 2024 07:08
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.

1 participant