We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The only assertions that work with dicts are, as far as I can see:
{ 'foo': 'bar' } | should.have.key('foo')
Is there also something like:
{ 'foo': 'bar' } | should.have.value('bar')
In fact, what I want is additional assertions applied to each of the values, so I want something like:
{ 'foo': 'bar' } | should.have.value() > should.have.length(3)
If not, is it possible for me to add an assertion like that?
The text was updated successfully, but these errors were encountered:
There is no built-in values operator, but it can be easily created based on the keys operator.
values
keys
Sorry, something went wrong.
074d0fe
Merge pull request #64 from sgissinger/master
fbaf340
Fixes #53, #55, #48, #59 (partially) and added mock call operators
@rix0rrr Operator contain has been upgraded to work with dictionaries
contain
No branches or pull requests
The only assertions that work with dicts are, as far as I can see:
Is there also something like:
In fact, what I want is additional assertions applied to each of the values, so I want something like:
If not, is it possible for me to add an assertion like that?
The text was updated successfully, but these errors were encountered: