jira-to-code / src /jira_to_code /tasks /medium_6 /test_service.py
Navigam's picture
feat: expand task suite to 22 challenges and update reward signal mechanics
6392732
Raw
History Blame Contribute Delete
208 Bytes
from service import fetch_rates
class MockClient:
def get(self, url):
raise TimeoutError()
def test_fetch_rates_fallback():
assert fetch_rates(MockClient()) == {'USD': 1.0} # cached fallback