1
0
mirror of synced 2026-01-29 04:02:20 -05:00
Files
airbyte/airbyte-integrations/connectors/source-xkcd/unit_tests/test_source.py
Cole Snodgrass 2e099acc52 update headers from 2022 -> 2023 (#22594)
* It's 2023!

* 2022 -> 2023

---------

Co-authored-by: evantahler <evan@airbyte.io>
2023-02-08 13:01:16 -08:00

22 lines
546 B
Python

#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from unittest.mock import MagicMock
from source_xkcd.source import SourceXkcd
def test_check_connection(mocker):
source = SourceXkcd()
logger_mock, config_mock = MagicMock(), MagicMock()
assert source.check_connection(logger_mock, config_mock) == (True, None)
def test_streams(mocker):
source = SourceXkcd()
config_mock = MagicMock()
streams = source.streams(config_mock)
expected_streams_number = 1
assert len(streams) == expected_streams_number