Fix explorer UI to use tx_count and broaden pytest discovery
Some checks failed
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled

- Use tx_count instead of block.transactions.length in latest blocks table
- Fix block modal to show tx_count only and remove misleading transaction list rendering
- Add root-level pytest.ini with broader test paths including apps/*/tests and tests/
- This fixes the block-detail/rendering mismatch where UI expected transactions array but RPC returns tx_count
This commit is contained in:
aitbc
2026-04-16 22:09:57 +02:00
parent ca34b6fee3
commit 40490f2344
2 changed files with 13 additions and 26 deletions

10
pytest.ini Normal file
View File

@@ -0,0 +1,10 @@
[pytest]
testpaths = tests apps/blockchain-node/tests apps/coordinator-api/tests apps/wallet/tests cli/tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
addopts = -v --tb=short
markers =
slow: marks tests as slow
integration: marks tests as integration tests
unit: marks tests as unit tests