From 031ff26f80060a4136b13d1b54e2bdbe4fb85206 Mon Sep 17 00:00:00 2001 From: Ken Payne Date: Thu, 26 Jan 2023 14:11:20 +0000 Subject: [PATCH] still battling client secrets --- tests/test_core.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/test_core.py b/tests/test_core.py index 0276d70..7c8d927 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -2,6 +2,7 @@ from datetime import datetime, timedelta, timezone +import pytest from singer_sdk.testing import get_tap_test_class from tap_google_analytics.tap import TapGoogleAnalytics @@ -33,6 +34,12 @@ "key_file_location": secrets_file_path, } - TestTapGoogleAnalyticsService = get_tap_test_class( + TapGoogleAnalyticsService = get_tap_test_class( tap_class=TapGoogleAnalytics, config=SAMPLE_CONFIG_SERVICE ) + + class TestTapGoogleAnalyticsService(TapGoogleAnalyticsService): + @pytest.fixture(scope="class") + def resource(self): + with create_secrets_file() as secrets_file_path: + yield secrets_file_path