mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-10 10:44:39 +00:00
18 lines
402 B
Python
18 lines
402 B
Python
import pathlib
|
|
|
|
import pytest
|
|
|
|
from datahub.sdk._entity import Entity
|
|
from tests.test_helpers import mce_helpers
|
|
|
|
|
|
def assert_entity_golden(
|
|
pytestconfig: pytest.Config, entity: Entity, golden_path: pathlib.Path
|
|
) -> None:
|
|
mce_helpers.check_goldens_stream(
|
|
pytestconfig=pytestconfig,
|
|
outputs=entity._as_mcps(),
|
|
golden_path=golden_path,
|
|
ignore_order=False,
|
|
)
|