From 24778875ce91c38ebe367a1296a4e348f48603fe Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Mon, 11 Mar 2024 15:25:38 +0100 Subject: [PATCH] fix test --- tests/test_har2locust.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_har2locust.py b/tests/test_har2locust.py index 8e3b78a..9ec512e 100644 --- a/tests/test_har2locust.py +++ b/tests/test_har2locust.py @@ -44,7 +44,8 @@ def test_invalid_resource_types(): "inputs/login.har", ) _stdout, stderr = proc.communicate() - assert proc.returncode == 1, f"Unexpected return code {proc.returncode}, stderr: {stderr}" + # it is just supposed to be a warning, so return code should still be ok + assert proc.returncode == 0, f"Unexpected return code {proc.returncode}, stderr: {stderr}" assert "unsupported resource type" in stderr