We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Testing Phoenix Contexts with External API Calls
153
clicks

Source: reddit.com
sectional343 addresses the challenge of testing a Phoenix context function, `list_cards`, which makes external API calls using HTTPoison instead of interacting with a database. The author compares this to testing database-backed entities, where built-in support exists for test databases. The main focus is on finding ways to mock the external API and assert that the API calls were made during testing.
Related posts
© HashMerge 2025