Skip to content

Commit

Permalink
Add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Mar 8, 2024
1 parent 26021c1 commit ccda3e7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/core/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,27 @@ def test_object_arrays_remove_types(caplog: pytest.LogCaptureFixture):
)


def test_conform_object_additional_properties():
schema = PropertiesList(
Property(
"object",
PropertiesList(additional_properties=True),
),
).to_dict()

record = {"object": {"extra": "value"}}
expected_output = {"object": {"extra": "value"}}

actual_output = conform_record_data_types(
"test_stream",
record,
schema,
TypeConformanceLevel.RECURSIVE,
logger,
)
assert actual_output == expected_output


def test_conform_primitives():
assert (
_conform_primitive_property(
Expand Down

0 comments on commit ccda3e7

Please sign in to comment.