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

Update ends_with validator to support lists and strings with test #564

Closed
wants to merge 4 commits into from

Conversation

ShreyaR
Copy link
Collaborator

@ShreyaR ShreyaR commented Feb 4, 2024

  • Existing ends_with validator only support lists, and comparing with the element at the last place of the list.
  • This PR adds support for strings and lists, and comparing and expected end to be of any length
  • Also adds a test

@ShreyaR ShreyaR requested a review from zsimjee February 4, 2024 07:07
@pytest.mark.parametrize(
"input, end, outcome, fix_value",
[
("Test string", "g", "pass", None),
Copy link
Collaborator

Choose a reason for hiding this comment

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

doesn't look like we run null or empty checks in the validator. Can we cover some of those cases in test to make sure they work correctly?

@zsimjee zsimjee closed this Mar 15, 2024
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