Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_no_outfile(self, runner):
"""This should fail with a warning about not providing an outfile"""
result = runner(["-e", "test", "flask"])
assert result.exit_code == 1
assert NO_OUTFILE in result.output