Skip to content

Commit 6c8771c

Browse files
committed
clean tests
1 parent bb424b8 commit 6c8771c

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

unit_tests/sources/declarative/incremental/test_per_partition_cursor_integration.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,6 @@ def test_given_record_for_partition_when_read_then_update_state(caplog):
253253
)
254254
logger = MagicMock()
255255

256-
stream_instance = source.streams({})[0]
257-
# list(stream_instance.stream_slices(sync_mode=SYNC_MODE))
258-
259256
stream_slice = [
260257
StreamSlice(
261258
partition={"partition_field": "1"},
@@ -275,22 +272,6 @@ def test_given_record_for_partition_when_read_then_update_state(caplog):
275272
),
276273
]
277274

278-
# with patch.object(
279-
# SimpleRetriever,
280-
# "_read_pages",
281-
# side_effect=[
282-
# [Record({"a record key": "a record value", CURSOR_FIELD: "2022-01-15"}, stream_slice)]
283-
# ],
284-
# ):
285-
# list(
286-
# stream_instance.read(
287-
# sync_mode=SYNC_MODE,
288-
# stream_slice=stream_slice,
289-
# stream_state={"states": []},
290-
# cursor_field=CURSOR_FIELD,
291-
# )
292-
# )
293-
294275
records = [
295276
[
296277
Record(
@@ -302,9 +283,6 @@ def test_given_record_for_partition_when_read_then_update_state(caplog):
302283
[],
303284
[],
304285
[],
305-
# [Record(data={"a record key": "a record value", CURSOR_FIELD: "2022-02-15"}, stream_name="Rates", associated_slice=stream_slice[1])],
306-
# [Record(data={"a record key": "a record value", CURSOR_FIELD: "2022-01-15"}, stream_name="Rates", associated_slice=stream_slice[1])],
307-
# [Record(data={"a record key": "a record value", CURSOR_FIELD: "2022-02-15"}, stream_name="Rates", associated_slice=stream_slice[1])],
308286
]
309287

310288
# Use caplog to capture logs

0 commit comments

Comments
 (0)