1
0
mirror of synced 2026-01-28 01:01:59 -05:00
Files
airbyte/airbyte-integrations/connectors/source-scaffold-source-http/unit_tests/test_source.py
Marcos Marx dca2256a7c Bump 2022 license version (#13233)
* Bump year in license short to 2022

* remove protocol from cdk
2022-05-26 15:00:42 -03:00

23 lines
654 B
Python

#
# Copyright (c) 2022 Airbyte, Inc., all rights reserved.
#
from unittest.mock import MagicMock
from source_scaffold_source_http.source import SourceScaffoldSourceHttp
def test_check_connection(mocker):
source = SourceScaffoldSourceHttp()
logger_mock, config_mock = MagicMock(), MagicMock()
assert source.check_connection(logger_mock, config_mock) == (True, None)
def test_streams(mocker):
source = SourceScaffoldSourceHttp()
config_mock = MagicMock()
streams = source.streams(config_mock)
# TODO: replace this with your streams number
expected_streams_number = 2
assert len(streams) == expected_streams_number