* Connector files * Add test files * Add integration test config files * Multiple changes to make it on Airbyte standards * Cleaning up * More clean ups * More clean ups * Removed max pages * Remove unused variable * Correctly separating Full refresh and incremental * Removed unused variables * Fix full_refresh class * Better code for creating stream classes * Fixing review comments * Update docs and Enum class * Update type conversion function * Fix enum class and update docs * Update discover * Implemented some unit tests * Update discover * Update test_source * Increase discovery test timeout * Update configured_catalog * Fix default_cursor_field * Adding final unit tests * Update spec: set client_id and tenant_id as secrets * Update discover to deal with Lookup and Picklist types * Fix Lookup data type conversion * add microsoft dataverse to source def * run format * auto-bump connector version Co-authored-by: Marcelo Pio de Castro <marcelopiocastro@gmail.com> Co-authored-by: daniloss99 <danilosiqueira99@gmail.com> Co-authored-by: Marcos Marx <marcosmarxm@users.noreply.github.com> Co-authored-by: marcosmarxm <marcosmarxm@gmail.com> Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
18 lines
532 B
Python
18 lines
532 B
Python
#
|
|
# Copyright (c) 2022 Airbyte, Inc., all rights reserved.
|
|
#
|
|
|
|
import pytest
|
|
from source_microsoft_dataverse.dataverse import AirbyteType, convert_dataverse_type
|
|
|
|
|
|
@pytest.mark.parametrize("dataverse_type,expected_result", [
|
|
("String", AirbyteType.String.value),
|
|
("Integer", AirbyteType.Integer.value),
|
|
("Virtual", None),
|
|
("Random", AirbyteType.String.value)
|
|
])
|
|
def test_convert_dataverse_type(dataverse_type, expected_result):
|
|
result = convert_dataverse_type(dataverse_type)
|
|
assert result == expected_result
|