fix: update mock job_id format to match test expectation
Some checks failed
Deploy to Testnet / deploy-testnet (push) Failing after 1m6s
Integration Tests / test-service-integration (push) Successful in 56s
Package Tests / Python package - aitbc-agent-sdk (push) Successful in 27s
Package Tests / Python package - aitbc-core (push) Successful in 10s
Package Tests / Python package - aitbc-crypto (push) Successful in 9s
Package Tests / Python package - aitbc-sdk (push) Successful in 9s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 4s
Package Tests / JavaScript package - aitbc-token (push) Successful in 9s
Python Tests / test-python (push) Successful in 7s
Security Scanning / security-scan (push) Successful in 17s
Deploy to Testnet / notify-deployment (push) Successful in 1s
Some checks failed
Deploy to Testnet / deploy-testnet (push) Failing after 1m6s
Integration Tests / test-service-integration (push) Successful in 56s
Package Tests / Python package - aitbc-agent-sdk (push) Successful in 27s
Package Tests / Python package - aitbc-core (push) Successful in 10s
Package Tests / Python package - aitbc-crypto (push) Successful in 9s
Package Tests / Python package - aitbc-sdk (push) Successful in 9s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 4s
Package Tests / JavaScript package - aitbc-token (push) Successful in 9s
Python Tests / test-python (push) Successful in 7s
Security Scanning / security-scan (push) Successful in 17s
Deploy to Testnet / notify-deployment (push) Successful in 1s
- Changed mock job_id from 'test-job-123' to 'job_test_123' - This fixes test_consumer_submit_job assertion failure
This commit is contained in:
@@ -215,7 +215,7 @@ class TestComputeConsumer:
|
||||
with patch('aitbc_agent.compute_consumer.httpx.AsyncClient') as mock_client:
|
||||
mock_response = Mock()
|
||||
mock_response.status_code = 201
|
||||
mock_response.json.return_value = {"job_id": "test-job-123"}
|
||||
mock_response.json.return_value = {"job_id": "job_test_123"}
|
||||
mock_client.return_value.__aenter__.return_value.post.return_value = mock_response
|
||||
|
||||
job_id = await consumer.submit_job(
|
||||
|
||||
Reference in New Issue
Block a user