From 10794704466f71cb7442850ea1579e8305e3b9ae Mon Sep 17 00:00:00 2001 From: terencecho Date: Tue, 6 Dec 2022 12:35:24 -0800 Subject: [PATCH] Fix formatting for connectors base --- .../requesters/paginators/strategies/offset_increment.py | 2 +- .../requesters/paginators/test_offset_increment.py | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/airbyte-cdk/python/airbyte_cdk/sources/declarative/requesters/paginators/strategies/offset_increment.py b/airbyte-cdk/python/airbyte_cdk/sources/declarative/requesters/paginators/strategies/offset_increment.py index 1ee0e3b39749..fcc97ab54faf 100644 --- a/airbyte-cdk/python/airbyte_cdk/sources/declarative/requesters/paginators/strategies/offset_increment.py +++ b/airbyte-cdk/python/airbyte_cdk/sources/declarative/requesters/paginators/strategies/offset_increment.py @@ -6,8 +6,8 @@ from typing import Any, List, Mapping, Optional, Union import requests -from airbyte_cdk.sources.declarative.requesters.paginators.strategies.pagination_strategy import PaginationStrategy from airbyte_cdk.sources.declarative.interpolation import InterpolatedString +from airbyte_cdk.sources.declarative.requesters.paginators.strategies.pagination_strategy import PaginationStrategy from airbyte_cdk.sources.declarative.types import Config from dataclasses_jsonschema import JsonSchemaMixin diff --git a/airbyte-cdk/python/unit_tests/sources/declarative/requesters/paginators/test_offset_increment.py b/airbyte-cdk/python/unit_tests/sources/declarative/requesters/paginators/test_offset_increment.py index d7df129f6a3f..822f046642bd 100644 --- a/airbyte-cdk/python/unit_tests/sources/declarative/requesters/paginators/test_offset_increment.py +++ b/airbyte-cdk/python/unit_tests/sources/declarative/requesters/paginators/test_offset_increment.py @@ -6,7 +6,6 @@ import pytest import requests - from airbyte_cdk.sources.declarative.interpolation import InterpolatedString from airbyte_cdk.sources.declarative.requesters.paginators.strategies.offset_increment import OffsetIncrement @@ -40,10 +39,8 @@ def test_offset_increment_paginator_strategy(test_name, page_size, expected_next def test_offset_increment_paginator_strategy_rises(): paginator_strategy = OffsetIncrement( - page_size=InterpolatedString(string="{{ options['page_size'] }}", options={"page_size": "invalid value"}), - options={}, - config={} + page_size=InterpolatedString(string="{{ options['page_size'] }}", options={"page_size": "invalid value"}), options={}, config={} ) with pytest.raises(Exception) as exc: paginator_strategy.get_page_size() - assert str(exc.value) == 'invalid value is of type . Expected ' + assert str(exc.value) == "invalid value is of type . Expected "