Skip to content

feat: Negative Tests#28

Open
caldempsey wants to merge 2 commits into
svix:mainfrom
caldempsey:callum/negative-tests
Open

feat: Negative Tests#28
caldempsey wants to merge 2 commits into
svix:mainfrom
caldempsey:callum/negative-tests

Conversation

@caldempsey
Copy link
Copy Markdown

Adds a few negative tests. These two are suspect:

def test_to_from_base62_invalid_base62_string():
    # Arrange
    ksuid = Ksuid()
    invalid_base62 = "invalid_base62_string!"

    # Act & Assert
    with pytest.raises(ValueError):
        ksuid.from_base62(invalid_base62)

def test_to_from_base62_empty_string():
    # Arrange
    ksuid = Ksuid()
    empty_base62 = ""

    # Act & Assert
    with pytest.raises(IndexError): # this looks wrong
        ksuid.from_base62(empty_base62)

@svix-jbrown svix-jbrown force-pushed the callum/negative-tests branch from 94c09a5 to 86ab131 Compare May 5, 2026 17:14
@svix-jbrown svix-jbrown requested a review from a team as a code owner May 5, 2026 17:14
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