Spaces:
Sleeping
Sleeping
Create tests/test_core.py
Browse files- tests/test_core.py +7 -0
tests/test_core.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import pytest
|
| 2 |
+
from core_engine import harmonize_price
|
| 3 |
+
|
| 4 |
+
def test_harmonize_basic():
|
| 5 |
+
out = harmonize_price(100, 80, 0.5)
|
| 6 |
+
assert out["harmonized_price"] < 100
|
| 7 |
+
assert 0 <= out["confidence"] <= 1
|