The following is a test. How to make this test fail if the subprocess.run results in an error?
import pytest
import subprocess
@pytest.mark.parametrize("input_json", ["input.json"])
def test_main(input_json):
subprocess.run(['python', 'main.py', input_json]