Skip to content

Commit

Permalink
chore: auto-fix lint and format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
octavia-squidington-iii committed Jan 12, 2025
1 parent 71250f8 commit 39527ed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion airbyte-integrations/connectors/source-braze/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import dpath
import requests

from airbyte_cdk.sources.declarative.extractors.dpath_extractor import DpathExtractor
from airbyte_cdk.sources.declarative.incremental import DatetimeBasedCursor
from airbyte_cdk.sources.declarative.interpolation import InterpolatedString
Expand Down Expand Up @@ -72,7 +73,9 @@ def _partition_daterange(self, start, end, step: datetime.timedelta):
for i, _slice in enumerate(date_range):
start_time = self._parser.parse(get_start_time(_slice), self._start_datetime.datetime_format)
end_time = self._parser.parse(get_end_time(_slice), self._end_datetime.datetime_format)
_slice._stream_slice[self.stream_slice_field_step.eval(self.config)] = (end_time + datetime.timedelta(days=int(bool(i))) - start_time).days
_slice._stream_slice[self.stream_slice_field_step.eval(self.config)] = (
end_time + datetime.timedelta(days=int(bool(i))) - start_time
).days
return date_range


Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
pytest_plugins = ["airbyte_cdk.test.utils.manifest_only_fixtures"]
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.

pytest_plugins = ["airbyte_cdk.test.utils.manifest_only_fixtures"]
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def test_datetime_slicer(components_module):
assert slicer.stream_slices() == expected_slices



def test_string_to_dict_transformation(components_module):
"""
Test that given string record transforms to dict with given name and value as a record itself.
Expand All @@ -46,4 +45,4 @@ def test_string_to_dict_transformation(components_module):
transformation = TransformToRecordComponent(fields=[added_field], parameters={})
record = transformation.transform(record="StringRecord", config={}, stream_state={}, stream_slice={})
expected_record = {"append_key": "StringRecord"}
assert record == expected_record
assert record == expected_record

0 comments on commit 39527ed

Please sign in to comment.