Skip to content

Commit

Permalink
Fix silly tests looking for specific strings...
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Dec 17, 2023
1 parent 76b3516 commit c8a86f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_har2locust.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c8a86f9

Please sign in to comment.