Skip to content

Commit

Permalink
fixes missing asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
willi-mueller committed Jul 12, 2024
1 parent 858ec47 commit dff327d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/extract/test_incremental.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ def some_data(

with pytest.raises(IncrementalCursorPathHasValueNone) as e:
list(some_data())
e.value.json_path == "data.items[0].created_at"
assert e.value.json_path == "data.items[0].created_at"


def test_cursor_path_none_nested_can_raise_on_none_2() -> None:
Expand All @@ -746,7 +746,7 @@ def some_data(

with pytest.raises(IncrementalCursorPathHasValueNone) as e:
list(some_data())
e.value.json_path == "data.items[*].created_at"
assert e.value.json_path == "data.items[*].created_at"


def test_cursor_path_none_nested_can_include_on_none_1() -> None:
Expand All @@ -760,7 +760,7 @@ def some_data(
yield {"data": {"items": [{"created_at": None}, {"created_at": 1}]}}

results = list(some_data())
results[0]["data"]["items"] == [{"created_at": None}, {"created_at": 1}]
assert results[0]["data"]["items"] == [{"created_at": None}, {"created_at": 1}]


def test_cursor_path_none_nested_can_include_on_none_2() -> None:
Expand All @@ -774,7 +774,7 @@ def some_data(
yield {"data": {"items": [{"created_at": None}, {"created_at": 1}]}}

results = list(some_data())
results[0]["data"]["items"] == [{"created_at": None}, {"created_at": 1}]
assert results[0]["data"]["items"] == [{"created_at": None}, {"created_at": 1}]


@pytest.mark.parametrize("item_type", ALL_TEST_DATA_ITEM_FORMATS)
Expand Down

0 comments on commit dff327d

Please sign in to comment.