Skip to content

Commit a52dc2c

Browse files
test: cover Horizon account cache wiring
1 parent 80905cb commit a52dc2c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from pathlib import Path
2+
3+
4+
def test_get_account_data_uses_horizon_account_cache():
5+
source = Path("quantara/web_app/contract_tools/blockchain_call.py").read_text(encoding="utf-8")
6+
7+
assert "cache_key = f\"horizon:account:" in source
8+
assert "get_cached_or_fetch(cache_key, ttl=5, fetch_fn=fetch_account)" in source
9+
assert "async def fetch_account()" in source

0 commit comments

Comments
 (0)