Skip to content

test(api): add None input test case for is_valid_uuid#43

Closed
AhtishamShahid wants to merge 1 commit into
foss-mainfrom
tests/run-ci-checks
Closed

test(api): add None input test case for is_valid_uuid#43
AhtishamShahid wants to merge 1 commit into
foss-mainfrom
tests/run-ci-checks

Conversation

@AhtishamShahid

Copy link
Copy Markdown

Summary

  • Adds a test_is_valid_uuid_with_none test case to verify is_valid_uuid handles None input gracefully

Test plan

  • CI lint checks pass
  • CI build checks pass

Copilot AI review requested due to automatic review settings June 4, 2026 16:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a unit test asserting that plane.utils.uuid.is_valid_uuid returns False when given None, to ensure the UUID validator handles None inputs without crashing.

Changes:

  • Add test_is_valid_uuid_with_none to cover None input for is_valid_uuid.

Comment on lines +55 to +57
def test_is_valid_uuid_with_none(self):
"""Test is_valid_uuid returns False for None input"""
assert is_valid_uuid(None) is False
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