feat: migrate tests to use centralized aitbc package utilities
Some checks failed
Python Tests / test-python (push) Failing after 43s
Some checks failed
Python Tests / test-python (push) Failing after 43s
- Migrate HTTP client usage from requests to aitbc.AITBCHTTPClient in test files - Update conftest.py to use aitbc path utilities (get_data_path, get_log_path) - Update test_model_validation.py to use aitbc validators (validate_address, validate_hash) - Skip HTML scraping files that require raw requests (verify_toggle_removed.py) - Migrated files: test_payment_integration.py, test_cross_node_blockchain.py, verify_transactions_fixed.py, test_tx_import.py, test_simple_import.py, test_minimal.py, test_block_import_complete.py
This commit is contained in:
@@ -7,13 +7,12 @@ Tests job creation with payments, escrow, release, and refund flows
|
||||
import asyncio
|
||||
import httpx
|
||||
import json
|
||||
import logging
|
||||
from datetime import datetime
|
||||
from typing import Dict, Any
|
||||
from aitbc import get_logger
|
||||
|
||||
# Configure logging
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
logger = logging.getLogger(__name__)
|
||||
logger = get_logger(__name__)
|
||||
|
||||
# Configuration
|
||||
COORDINATOR_URL = "https://aitbc.bubuit.net/api"
|
||||
@@ -22,7 +21,7 @@ MINER_KEY = "${MINER_API_KEY}"
|
||||
|
||||
class PaymentIntegrationTest:
|
||||
def __init__(self):
|
||||
self.client = httpx.Client(timeout=30.0)
|
||||
self.client = AITBCHTTPClient(timeout=30.0)
|
||||
self.job_id = None
|
||||
self.payment_id = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user