Add ctx_obj fixture to conftest.py for CLI test context mocking
Some checks failed
Coverage Phase 1 (70% Target) / test-coverage-70 (push) Has been cancelled
Coverage Phase 2 (85% Target) / test-coverage-85 (push) Has been cancelled
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Some checks failed
Coverage Phase 1 (70% Target) / test-coverage-70 (push) Has been cancelled
Coverage Phase 2 (85% Target) / test-coverage-85 (push) Has been cancelled
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
This commit is contained in:
@@ -63,6 +63,18 @@ from tests.fixtures.test_data_factory import TestDataFactory
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def ctx_obj():
|
||||
"""Mock Click context object for CLI tests"""
|
||||
return {
|
||||
'output': 'table',
|
||||
'url': None,
|
||||
'api_key': None,
|
||||
'verbose': 0,
|
||||
'debug': False
|
||||
}
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def training_env():
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user