Is there a good way to set stream metadata (specif...
# singer-tap-development
m
Is there a good way to set stream metadata (specifically, to set
replication-method: LOG_BASED
) in a tap’s test suite? I see that MeltanoLabs tap-postgres does this: https://github.com/MeltanoLabs/tap-postgres/blob/d3e6c7e61139f437ad150c2995c094cc30bdfc42/tests/test_log_based.py#L43-L54 - is there a better way than that?
v
I think they were trying something in target-snowflake that is simpler, but I haven't dove for this exact thing so I'm not sure
A "test helper" class would probably be the easiest way to get there and we could slap it in the sdk
https://github.com/meltano/sdk/tree/main/singer_sdk/testing is the Meltano version of the helpers I'm talking about. I don't think they have what you're asking as this the approach here I believe we focused on "standardizing tests" to a few stable workflows. I'm sure they'd be cool with a helper class being added or something like that!
e