Skip to content

Commit 87dddbc

Browse files
authored
[fix] Failure of unit tests of mem0 instrumentation (#98)
[fix] Failure of unit tests of mem0 instrumentation
2 parents c1c9e19 + 0840c07 commit 87dddbc

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

CHANGELOG-loongsuite.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Fixed
1515

16+
- `loongsuite-instrumentation-mem0`: fix unittest
17+
([#98](https://github.com/alibaba/loongsuite-python-agent/pull/98))
18+
1619
- `loongsuite-instrumentation-mem0`: use memory handler
1720
([#89](https://github.com/alibaba/loongsuite-python-agent/pull/89))
1821

instrumentation-loongsuite/loongsuite-instrumentation-mem0/test-requirements-latest.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ pytest==7.4.4
33
pytest-cov>=4.0.0
44
pytest-asyncio==0.21.0
55
pytest-vcr==1.0.2
6+
vcrpy>=7.0.0,<8.0.0
67

78
# Third-party libraries used in tests
89
pyyaml>=6.0.0

instrumentation-loongsuite/loongsuite-instrumentation-mem0/test-requirements-oldest.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ pytest==7.4.4
33
pytest-cov>=4.0.0
44
pytest-asyncio==0.21.0
55
pytest-vcr==1.0.2
6+
vcrpy>=7.0.0,<8.0.0
67

78
# Third-party libraries used in tests
89
pyyaml>=6.0.0

instrumentation-loongsuite/loongsuite-instrumentation-mem0/tests/conftest.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -423,16 +423,6 @@ def _flatten_path(path: str) -> str:
423423
"decode_compressed_response": True,
424424
"before_record_response": scrub_response_headers,
425425
"record_mode": record_mode,
426-
# Match requests by body content to distinguish different requests with same URL
427-
"match_on": [
428-
"method",
429-
"scheme",
430-
"host",
431-
"port",
432-
"path",
433-
"query",
434-
"body",
435-
],
436426
# Ignore analytics/telemetry domains to avoid playback failures
437427
"ignore_hosts": ["us.i.posthog.com", "app.posthog.com"],
438428
}

0 commit comments

Comments
 (0)