Skip to content

Commit

Permalink
remove commented out examples from plugin_example
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Mar 15, 2024
1 parent 5541671 commit 736cf14
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions har2locust/extra_plugins/plugin_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,21 +112,3 @@ def visit_With(self, node: ast.With) -> ast.With:
return node

T().visit(tree)


# More examples

# @entriesprocessor
# def log_something_and_drop_everthing_but_the_first_request(entries):
# logging.info(f"hello")
# entries[:] = [entries[0]] # update list in-place

# @entriesprocessor
# def parametrize_ssn(entries):
# for e in entries:
# if "postData" in e["request"]:
# e["request"]["postData"]["text"] = re.sub(
# r'"personalId":"\d*"',
# "\"personalId\":self.customer['ssn']",
# e["request"]["postData"]["text"],
# )

0 comments on commit 736cf14

Please sign in to comment.