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_invalid_test_run_chars_regex():
"""Check if invalid test run characters are handled."""
invalid_test_run_id = '\\/.:*"<>|~!@#$?%^&\'*()+`,='
assert re.sub(INVALID_CHARS_REGEX, '', invalid_test_run_id) == ''