-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source Sentry: add unit_tests (#15961)
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
airbyte-integrations/connectors/source-sentry/unit_tests/test_source.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |