edward_chen
06/02/2022, 8:33 PMstream.sync
(from https://github.com/AutoIDM/tap-googleads/blob/main/tap_googleads/tests/test_customer_not_found.py) but that call doesn't return anything. What is the typical best practice to add unit tests for taps?visch
06/02/2022, 10:01 PMedward_chen
06/02/2022, 11:52 PMexample_stream.sync()
, it doesn't pick up the child_context values in the path. So I do something like:
# in streams.py
class ProjectStream(ExampleStream):
...
path = "{org_id}/projects"
...
# in test_core.py
tap: Tap = tap_example.tap.TapExample()
proj_stream: Stream = tap.streams["projects"]
proj_stream.sync(context={"org_id": ORG_ID})
edward_chen
06/02/2022, 11:52 PMedward_chen
06/03/2022, 12:01 AMvisch
06/03/2022, 6:39 PM