Add sys import to test files and remove obsolete integration tests
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Successful in 9s
Blockchain Synchronization Verification / sync-verification (push) Failing after 1s
CLI Tests / test-cli (push) Failing after 3s
Documentation Validation / validate-docs (push) Successful in 6s
Documentation Validation / validate-policies-strict (push) Successful in 2s
Integration Tests / test-service-integration (push) Successful in 40s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 1s
P2P Network Verification / p2p-verification (push) Successful in 2s
Production Tests / Production Integration Tests (push) Successful in 21s
Python Tests / test-python (push) Successful in 13s
Security Scanning / security-scan (push) Failing after 46s
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Successful in 17s
Smart Contract Tests / lint-solidity (push) Successful in 10s

- Add sys import to 29 test files across agent-coordinator, blockchain-event-bridge, blockchain-node, and coordinator-api
- Remove apps/blockchain-event-bridge/tests/test_integration.py (obsolete bridge integration tests)
- Remove apps/coordinator-api/tests/test_integration.py (obsolete API integration tests)
- Implement GPU registration in marketplace_gpu.py with GPURegistry model persistence
This commit is contained in:
aitbc
2026-04-23 16:43:17 +02:00
parent b8b1454573
commit e60cc3226c
134 changed files with 14321 additions and 1873 deletions

View File

@@ -2,6 +2,7 @@
Tests for Multi-Validator PoA Consensus
"""
import sys
import pytest
import asyncio
from unittest.mock import Mock, patch

View File

@@ -2,6 +2,7 @@
Tests for Escrow System
"""
import sys
import pytest
import asyncio
import time

View File

@@ -2,6 +2,7 @@
Tests for Staking Mechanism
"""
import sys
import pytest
import time
from decimal import Decimal

View File

@@ -2,6 +2,7 @@
Tests for P2P Discovery Service
"""
import sys
import pytest
import asyncio
from unittest.mock import Mock, patch

View File

@@ -2,6 +2,7 @@
Tests for Hub Manager with Redis persistence
"""
import sys
import pytest
import asyncio
from unittest.mock import Mock, AsyncMock, patch

View File

@@ -2,6 +2,7 @@
Tests for Island Join functionality
"""
import sys
import pytest
import asyncio
from unittest.mock import Mock, AsyncMock, patch, MagicMock

View File

@@ -2,6 +2,7 @@
Security tests for database access restrictions.
Tests that database manipulation is not possible without detection.
import sys
"""
import os

View File

@@ -2,6 +2,7 @@
Security tests for state root verification.
Tests that state root verification prevents silent tampering.
import sys
"""
import pytest

View File

@@ -2,6 +2,7 @@
Security tests for state transition validation.
Tests that balance changes only occur through validated transactions.
import sys
"""
import pytest

View File

@@ -2,6 +2,7 @@
from __future__ import annotations
import sys
import asyncio
import pytest
from datetime import datetime, timedelta

View File

@@ -2,6 +2,7 @@ import hashlib
from contextlib import contextmanager
from datetime import datetime
import sys
import pytest
from sqlmodel import Session, SQLModel, create_engine, select

View File

@@ -2,6 +2,7 @@ from __future__ import annotations
import asyncio
import sys
import pytest
from fastapi.testclient import TestClient

View File

@@ -2,6 +2,7 @@
from __future__ import annotations
import sys
import pytest
import asyncio
from typing import Generator, Any

View File

@@ -2,6 +2,7 @@
from __future__ import annotations
import sys
import pytest
import tempfile
import shutil

View File

@@ -2,6 +2,7 @@
import json
import os
import sys
import tempfile
import time
import pytest

View File

@@ -2,6 +2,7 @@ from __future__ import annotations
import pytest
from sqlmodel import Session
import sys
from aitbc_chain.models import Block, Receipt
from aitbc_chain.models import Transaction as ChainTransaction

View File

@@ -2,6 +2,7 @@
from __future__ import annotations
import sys
import json
from pathlib import Path

View File

@@ -2,6 +2,7 @@
import hashlib
import time
import sys
import pytest
from datetime import datetime
from contextlib import contextmanager

View File

@@ -2,6 +2,7 @@ from __future__ import annotations
import asyncio
from contextlib import ExitStack
import sys
from fastapi.testclient import TestClient