Download tests/plugins/memory/test_byterover_provider.py from SaylorTwift/hermes-agent: direct link, hf CLI and curl.
- Browser
- Download file 552 Bytes
-
https://huggingface.co/SaylorTwift/hermes-agent/resolve/main/tests/plugins/memory/test_byterover_provider.py
- Command line
-
hf download hf://SaylorTwift/hermes-agent/tests/plugins/memory/test_byterover_provider.py
-
curl -L -o test_byterover_provider.py https://huggingface.co/SaylorTwift/hermes-agent/resolve/main/tests/plugins/memory/test_byterover_provider.py
552 Bytes
| """Tests for the ByteRover memory provider config gates.""" | |
| from plugins.memory.byterover import ByteRoverMemoryProvider | |
| def test_auto_extract_false_skips_sync_turn(monkeypatch): | |
| calls = [] | |
| provider = ByteRoverMemoryProvider({"auto_extract": False}) | |
| provider.initialize("session-1") | |
| monkeypatch.setattr("plugins.memory.byterover._run_brv", lambda *args, **kwargs: calls.append((args, kwargs))) | |
| provider.sync_turn("please remember this detail", "acknowledged") | |
| assert calls == [] | |
| assert provider._sync_thread is None | |