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_interval_parser():
assert interval_parser("5") == 5
def test_interval_parser_errors(value):
with pytest.raises(argparse.ArgumentTypeError):
interval_parser(value)