* Added Source Weatherstack
* Clean Code. Took out TODO's.
* Added link to get API key
* Remade check_connection and added Constants
* Added WeatherStack to source_definitions and updated Catalog.json
* deleted configured_catalog.json (not in use)
* Revert "deleted configured_catalog.json (not in use)"
This reverts commit 1b40726335.
* chore: revert change
* chore: format and lint
* chore: attempt to patch unit tests
* Added Classes for Unit tests
* chore: fix coverage
* chore: fix unit tests for weatherstream
* chore: fix weather stack unittests
* chore: fix unittests fr weatherstack
* Added schemas to catalogue
* Update setup.py
* Update build.gradle
* Delete sample_state.json
* support for various account types
* Update source.py
* Delete .dccache
* Update source_definitions.yaml
* Update source_specs.yaml
Co-authored-by: Vincent Koc <koconder@users.noreply.github.com>
Co-authored-by: Vincent Koc <koconder@gmail.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
16 lines
374 B
Python
16 lines
374 B
Python
#
|
|
# Copyright (c) 2022 Airbyte, Inc., all rights reserved.
|
|
#
|
|
|
|
from unittest.mock import MagicMock
|
|
|
|
from source_weatherstack.source import SourceWeatherstack
|
|
|
|
|
|
def test_streams(mocker):
|
|
source = SourceWeatherstack()
|
|
config_mock = MagicMock()
|
|
streams = source.streams(config_mock)
|
|
expected_streams_number = 4
|
|
assert len(streams) == expected_streams_number
|