Skip to content

Commit

Permalink
Adjusted tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skrydal committed Dec 10, 2024
1 parent 8e51920 commit e16e8af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions metadata-ingestion/tests/unit/test_kafka_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ def mock_get_latest_version(subject_name: str) -> Optional[RegisteredSchema]:
"topic2-key": "test.acryl.Topic2Key",
"topic2-value": "test.acryl.Topic2Value",
},
"ingest_schemas_as_entities": True
}
ctx = PipelineContext(run_id="test")
kafka_source = KafkaSource.create(source_config, ctx)
Expand Down Expand Up @@ -478,8 +479,7 @@ def mock_get_latest_version(subject_name: str) -> Optional[RegisteredSchema]:
kafka_source = KafkaSource.create(source_config, ctx)

workunits = list(kafka_source.get_workunits())

assert len(workunits) == 6
assert len(workunits) == 2
if ignore_warnings_on_schema_type:
assert not kafka_source.report.warnings
else:
Expand Down Expand Up @@ -622,6 +622,7 @@ def mock_get_latest_version(subject_name: str) -> Optional[RegisteredSchema]:
kafka_source = KafkaSource.create(
{
"connection": {"bootstrap": "localhost:9092"},
"ingest_schemas_as_entities": True,
"meta_mapping": {
"owner": {
"match": "^@(.*)",
Expand Down

0 comments on commit e16e8af

Please sign in to comment.