Andy Carter
11/29/2024, 10:05 AMdiscover_streams
method (in my _custom_initialization
method), which works fine.
def discover_streams(self) -> list[streams.GoogleSearchConsoleStream]:
"""Return a list of discovered streams.
Returns:
A list of discovered streams.
"""
self._custom_initialization()
return [
streams.PerformanceReportPage(self, service=self.service),
streams.PerformanceReportDate(self, service=self.service),
streams.PerformanceReportCountry(self, service=self.service),
streams.PerformanceReportQuery(self, service=self.service),
streams.PerformanceReportDevice(self, service=self.service),
]
But when I am trying to develop some tests, this obviously causes an issue, as I don't have any test credentials.
Is there an alternative method I can move this _custom_initialization
in my Tap
class so it run after discover_streams
?
Any perhaps any suggestions for how to handle 'fake' credentials for developing some unit tests?visch
11/29/2024, 2:40 PMvisch
11/29/2024, 2:40 PMvisch
11/29/2024, 2:41 PMAndy Carter
11/29/2024, 3:14 PMAndy Carter
11/29/2024, 3:16 PM