From 53a607f0388b037d76fef4e8964cf4012a090e9e Mon Sep 17 00:00:00 2001 From: Oleksandr Bazarnov Date: Thu, 25 Aug 2022 15:24:02 +0300 Subject: [PATCH] added unit_tests --- .../source-sentry/unit_tests/test_source.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 airbyte-integrations/connectors/source-sentry/unit_tests/test_source.py diff --git a/airbyte-integrations/connectors/source-sentry/unit_tests/test_source.py b/airbyte-integrations/connectors/source-sentry/unit_tests/test_source.py new file mode 100644 index 000000000000..f09018de4a3a --- /dev/null +++ b/airbyte-integrations/connectors/source-sentry/unit_tests/test_source.py @@ -0,0 +1,12 @@ +# +# Copyright (c) 2022 Airbyte, Inc., all rights reserved. +# + + +from airbyte_cdk.logger import AirbyteLogger +from source_sentry.source import SourceSentry + +def test_source_wrong_credentials(): + source = SourceSentry() + status, error = source.check_connection(logger=AirbyteLogger(), config={"auth_token": "test_auth_token"}) + assert not status