dodil/erp-brick-payments

DODIL ERP brick: payments

tests/test_composition.py

"""The brick composes: `erp-compose check` finds no table or tool collision, no version drift, and a process view -
with the real business-partner brick when it is installed."""
import pathlib

import pytest
from erp_platform import compose

HERE = pathlib.Path(__file__).parent


def test_the_composition_checks():
    pytest.importorskip("brick_bp", reason="brick-business-partner is not installed")
    report = compose.check(compose.load(HERE / "tier1.compose.yaml"))
    assert report["problems"] == []