diff --git a/CHANGELOG-loongsuite.md b/CHANGELOG-loongsuite.md index 6a0c63ba..8f888853 100644 --- a/CHANGELOG-loongsuite.md +++ b/CHANGELOG-loongsuite.md @@ -13,6 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- `loongsuite-instrumentation-mem0`: fix unittest + ([#98](https://github.com/alibaba/loongsuite-python-agent/pull/98)) + - `loongsuite-instrumentation-mem0`: use memory handler ([#89](https://github.com/alibaba/loongsuite-python-agent/pull/89)) diff --git a/instrumentation-loongsuite/loongsuite-instrumentation-mem0/test-requirements-latest.txt b/instrumentation-loongsuite/loongsuite-instrumentation-mem0/test-requirements-latest.txt index 66889763..f00ead84 100644 --- a/instrumentation-loongsuite/loongsuite-instrumentation-mem0/test-requirements-latest.txt +++ b/instrumentation-loongsuite/loongsuite-instrumentation-mem0/test-requirements-latest.txt @@ -3,6 +3,7 @@ pytest==7.4.4 pytest-cov>=4.0.0 pytest-asyncio==0.21.0 pytest-vcr==1.0.2 +vcrpy>=7.0.0,<8.0.0 # Third-party libraries used in tests pyyaml>=6.0.0 diff --git a/instrumentation-loongsuite/loongsuite-instrumentation-mem0/test-requirements-oldest.txt b/instrumentation-loongsuite/loongsuite-instrumentation-mem0/test-requirements-oldest.txt index 1c4c7ba6..c93bbd9b 100644 --- a/instrumentation-loongsuite/loongsuite-instrumentation-mem0/test-requirements-oldest.txt +++ b/instrumentation-loongsuite/loongsuite-instrumentation-mem0/test-requirements-oldest.txt @@ -3,6 +3,7 @@ pytest==7.4.4 pytest-cov>=4.0.0 pytest-asyncio==0.21.0 pytest-vcr==1.0.2 +vcrpy>=7.0.0,<8.0.0 # Third-party libraries used in tests pyyaml>=6.0.0 diff --git a/instrumentation-loongsuite/loongsuite-instrumentation-mem0/tests/conftest.py b/instrumentation-loongsuite/loongsuite-instrumentation-mem0/tests/conftest.py index 1fadae13..3263067b 100644 --- a/instrumentation-loongsuite/loongsuite-instrumentation-mem0/tests/conftest.py +++ b/instrumentation-loongsuite/loongsuite-instrumentation-mem0/tests/conftest.py @@ -423,16 +423,6 @@ def _flatten_path(path: str) -> str: "decode_compressed_response": True, "before_record_response": scrub_response_headers, "record_mode": record_mode, - # Match requests by body content to distinguish different requests with same URL - "match_on": [ - "method", - "scheme", - "host", - "port", - "path", - "query", - "body", - ], # Ignore analytics/telemetry domains to avoid playback failures "ignore_hosts": ["us.i.posthog.com", "app.posthog.com"], }