MIRA_LABS_AI / demo-backend /loan-service /tests /test_pipeline_service_router.py
ans123's picture
Initial upload from Colab
ef1ad9e verified
# fetch loan applications for the consumer
def test_get_loan_applications(test_client, consumer_header):
url = "pipeline/applications"
response = test_client.get(url, headers=consumer_header)
assert response.status_code == 200
response = response.json()
assert response["status"] == 200
assert response["message"] == "Applications fetched successfully!"