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
In order to replace things like:
@hospital.healthcheck def test_multiple(): errors = [] for domain in 'example.com', 'www.example.com': try: hospital.assert_ping(domain) except AssertionError, e: errors.append(e) if errors: raise AssertionError('\n'.join(errors))
With something like:
@hospital.healthcheck def test_multiple(): with hospital.multiple_assertions: for domain in 'example.com', 'www.example.com': hospital.assert_ping(domain)
The text was updated successfully, but these errors were encountered:
Ideas:
assert_multiple()
MultipleAssertionsError
with assert_multiple(collect_only=True) as assertions
errors
Sorry, something went wrong.
No branches or pull requests
In order to replace things like:
With something like:
The text was updated successfully, but these errors were encountered: