chore(security): enhance environment configuration, CI workflows, and wallet daemon with security improvements
- Restructure .env.example with security-focused documentation, service-specific environment file references, and AWS Secrets Manager integration - Update CLI tests workflow to single Python 3.13 version, add pytest-mock dependency, and consolidate test execution with coverage - Add comprehensive security validation to package publishing workflow with manual approval gates, secret scanning, and release
This commit is contained in:
@@ -5,14 +5,25 @@ import json
|
||||
import base64
|
||||
from unittest.mock import Mock, patch
|
||||
from click.testing import CliRunner
|
||||
from aitbc_cli.commands.marketplace_advanced import advanced, models, analytics, trading, dispute
|
||||
from aitbc_cli.main import cli
|
||||
|
||||
|
||||
class TestModelsCommands:
|
||||
"""Test advanced model NFT operations commands"""
|
||||
class TestMarketplaceAdvanced:
|
||||
"""Test advanced marketplace commands"""
|
||||
|
||||
def setup_method(self):
|
||||
"""Setup test environment"""
|
||||
def test_marketplace_help(self):
|
||||
"""Test marketplace help command"""
|
||||
runner = CliRunner()
|
||||
result = runner.invoke(cli, ['marketplace', '--help'])
|
||||
assert result.exit_code == 0
|
||||
assert 'marketplace' in result.output.lower()
|
||||
|
||||
def test_marketplace_agents_help(self):
|
||||
"""Test marketplace agents help command"""
|
||||
runner = CliRunner()
|
||||
result = runner.invoke(cli, ['marketplace', 'agents', '--help'])
|
||||
assert result.exit_code == 0
|
||||
assert 'agents' in result.output.lower()
|
||||
self.runner = CliRunner()
|
||||
self.config = {
|
||||
'coordinator_url': 'http://test:8000',
|
||||
|
||||
Reference in New Issue
Block a user