diff --git a/tests/sources/rest_api/integration/test_rest_api_source.py b/tests/sources/rest_api/integration/test_rest_api_source.py index 686895879a..beebf4bbe4 100644 --- a/tests/sources/rest_api/integration/test_rest_api_source.py +++ b/tests/sources/rest_api/integration/test_rest_api_source.py @@ -1,3 +1,4 @@ +import dlt import pytest @@ -10,5 +11,7 @@ ) def test_all_examples(example_name: str) -> None: from dlt.sources import rest_api_pipeline - + # reroute token location from secrets + github_token = dlt.secrets.get("sources.github.access_token") + dlt.secrets["sources.rest_api_pipeline.github.access_token"] = github_token getattr(rest_api_pipeline, example_name)()