phpflickr icon indicating copy to clipboard operation
phpflickr copied to clipboard

does testing need an API key?

Open tacman opened this issue 1 year ago • 2 comments

I'm getting a lot of skipped tests, so I need to set an API key to run them? Does it make calls into Flickr, or are they mocked?

tacman avatar Nov 21 '24 16:11 tacman

It does need a key, because it makes actual calls to Flickr. It used to be possible to have a test account, but a few years ago they started deleting those.

We could mock the responses, but I wonder if it's worth it, considering most of the complexity here is in making sure that e.g. we have the correct parameter names.

samwilson avatar Nov 21 '24 23:11 samwilson

I do think mocking the tests is the way to go, but it's such a pain. I'm trying to learn how to do that, since packages wrapping API calls are so valuable.

tacman avatar Nov 21 '24 23:11 tacman