Skip to content

Commit

Permalink
Cleanup vcr.py comments
Browse files Browse the repository at this point in the history
Signed-off-by: Teo <teocns@gmail.com>
  • Loading branch information
teocns committed Jan 13, 2025
1 parent 2a860c8 commit e65f646
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/fixtures/vcr.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,26 +94,4 @@ def filter_response_headers(response):
"decode_compressed_response": True,
"record_on_exception": False,
"allow_playback_repeats": True,
# # Body filtering for system information
# "filter_post_data_parameters": [
# ("host_env", "REDACTED_ENV_INFO"),
# ("OS", "REDACTED_OS_INFO"),
# ("CPU", "REDACTED_CPU_INFO"),
# ("RAM", "REDACTED_RAM_INFO"),
# ("Disk", "REDACTED_DISK_INFO"),
# ("Installed Packages", "REDACTED_PACKAGES_INFO"),
# ("Project Working Directory", "REDACTED_DIR_INFO"),
# ("Virtual Environment", "REDACTED_VENV_INFO"),
# ("Hostname", "REDACTED_HOSTNAME")
# ],
#
# # Custom before_record function to filter response bodies
# "before_record_response": lambda response: {
# **response,
# "body": {
# "string": response["body"]["string"].replace(
# str(Path.home()), "REDACTED_HOME_PATH"
# )
# } if isinstance(response.get("body", {}).get("string"), str) else response["body"]
# }
}

0 comments on commit e65f646

Please sign in to comment.