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_writegear_class(f_name, compression, c_ffmpeg, output_params, result):
try:
WriteGear(output_filename = f_name, compression_mode = compression , custom_ffmpeg = c_ffmpeg, logging = True, **output_params)
except Exception as e:
if result:
pytest.fail(str(e))