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

When using gabbihtml a deprecation warning is issued #276

Open
cdent opened this issue Oct 17, 2019 · 0 comments
Open

When using gabbihtml a deprecation warning is issued #276

cdent opened this issue Oct 17, 2019 · 0 comments

Comments

@cdent
Copy link
Owner

cdent commented Oct 17, 2019

The warning is:

gabbi/case.py:648: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.

It's checking self.response_data and because that's an lxml result at that point it makes that warning. It's likely we can check None as advised there, or len. Depends on if we ever expect an empty string. The existing tests will probably help check the change.

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

No branches or pull requests

1 participant