File size: 202 Bytes
d5cb1af
 
 
 
 
 
 
1
2
3
4
5
6
7
import pytest
from core_engine import harmonize_price

def test_harmonize_basic():
    out = harmonize_price(100, 80, 0.5)
    assert out["harmonized_price"] < 100
    assert 0 <= out["confidence"] <= 1