Hi, is there some way to specifically call the str...
# singer-tap-development
e
Hi, is there some way to specifically call the streams of a tap if I want to test that my custom tap is handling the api responses correctly? Context is that I'm writing unit tests and have mocked out some responses using the python
responses
class. I took a look at
RESTStream
and it looks like it's based on the
requests
class. I tried the following (simplified of course):
Copy code
from tap.stream import ExampleStream

expected_url = "<http://third_party_url>"
stream = ExampleStream()
stream_url = stream.get_url()
assert stream_url == expected_url
But I hit errors since it looks like it tried to initiate the Stream. Also saw somewhere that I could use
validate_config=False
so I did that but it gave me the following error:
TypeError: __init__() got an unexpected keyword argument 'validate_config'
. Any help or direction to point to would be useful! Thank you!