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 asserts_in ok is False, no need to check other attributes #201

Open
mbukatov opened this issue Oct 11, 2018 · 0 comments
Open

when asserts_in ok is False, no need to check other attributes #201

mbukatov opened this issue Oct 11, 2018 · 0 comments

Comments

@mbukatov
Copy link
Contributor

mbukatov commented Oct 11, 2018

Eg. I want to just check that the response fails, but I don't care how exactly, so I write:

asserts = {"ok": False}
response = api.import_cluster(cluster_id, asserts_in=asserts)

But this will still check if status is 200 and so on - which is something that makes sense for successful responses only.

The same goes when I want to check that status is 404, and don't want to specify 'Not Found' at the same time ...

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