From c8a86f96d66a8b3b721f5e933ae8bddeb94c5abf Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Sun, 17 Dec 2023 21:26:08 +0100 Subject: [PATCH] Fix silly tests looking for specific strings... --- tests/test_har2locust.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_har2locust.py b/tests/test_har2locust.py index e7de43c..4715e52 100644 --- a/tests/test_har2locust.py +++ b/tests/test_har2locust.py @@ -104,7 +104,7 @@ def test_plugins(): assert proc.returncode == 0, f"Bad return code {proc.returncode}, stderr: {stderr}" print(stderr) # this will only be shown if it fails anyway assert stdout == expected_output - assert "self.reader.user" in stdout + assert "next(" in stdout assert "self.customer" in stdout # test url timestamp rewriting function assert "self.rest_" in stdout @@ -145,7 +145,7 @@ def test_plugins_run_as_module(): # same as above test, but run as module stdout, stderr = proc.communicate() assert proc.returncode == 0, f"Bad return code {proc.returncode}, stderr: {stderr}" assert stdout == expected_output - assert "self.reader.user" in stdout + assert "next(" in stdout assert "self.customer" in stdout # test url timestamp rewriting function assert "self.rest_" in stdout