refactor: restructure test suite
- Remove tests/production/ directory (JWT auth, production monitoring, etc.) - Remove tests/staking/ directory - Remove tests/services/test_staking_service.py - Remove tests/phase1/ directory - Remove tests/load_test.py - Add tests/verification/ directory with 20+ new test files - Add tests/load/locustfile.py for load testing - Add tests/security/test_confidential_transactions.py - Add tests/integration/test_working_integration.py - Update docs/ for minimum Python version and paths
This commit is contained in:
21
tests/verification/test_tx_model.py
Normal file
21
tests/verification/test_tx_model.py
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Test the Transaction model directly
|
||||
"""
|
||||
|
||||
# Test creating a transaction model instance
|
||||
tx_data = {
|
||||
"tx_hash": "0xtest123",
|
||||
"sender": "0xsender",
|
||||
"recipient": "0xrecipient",
|
||||
"payload": {"test": "data"}
|
||||
}
|
||||
|
||||
print("Transaction data:")
|
||||
print(tx_data)
|
||||
|
||||
# Simulate what the router does
|
||||
print("\nExtracting fields:")
|
||||
print(f"tx_hash: {tx_data.get('tx_hash')}")
|
||||
print(f"sender: {tx_data.get('sender')}")
|
||||
print(f"recipient: {tx_data.get('recipient')}")
|
||||
Reference in New Issue
Block a user