Skip to content

Commit

Permalink
attempt to access secrets differently
Browse files Browse the repository at this point in the history
  • Loading branch information
willi-mueller committed Aug 30, 2024
1 parent e6599d2 commit 8f74601
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/sources/rest_api/integration/test_rest_api_source.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import dlt
import pytest


Expand All @@ -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)()

0 comments on commit 8f74601

Please sign in to comment.