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

Elements.should() #58

Closed
4 tasks
ElSnoMan opened this issue Apr 5, 2020 · 0 comments · Fixed by #61
Closed
4 tasks

Elements.should() #58

ElSnoMan opened this issue Apr 5, 2020 · 0 comments · Fixed by #61

Comments

@ElSnoMan
Copy link
Owner

ElSnoMan commented Apr 5, 2020

This one is not as crucial since they are so easy to represent in Python and pytest.

  • .should().be_empty()
  • .should().have_length()
  • .should().be_greater_than()
  • .should().be_less_than()

For example

# be_empty
assert py.find('a').is_empty()

# have_length
assert py.find('a').length == num

# greater than
assert py.find('a').length > num

# less than
assert py.find('a').length < num
@ElSnoMan ElSnoMan linked a pull request Apr 5, 2020 that will close this issue
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 a pull request may close this issue.

1 participant