snipe/tests/trust
pyr0ball 7005be02c2
Some checks are pending
CI / Python tests (push) Waiting to run
CI / Frontend typecheck + tests (push) Waiting to run
Mirror / mirror (push) Waiting to run
test: aggregator coverage for zero_feedback, long_on_market, significant_price_drop
Add 10 new tests covering the three previously untested flag paths:
- zero_feedback: flag fires + composite capped at 35 even with all-20 signals
- long_on_market: fires at >=5 sightings + >=14 days; NOT at <5 sightings or <14 days
- significant_price_drop: fires at >=20% below first-seen; NOT at <20% or no prior price
- established_retailer: duplicate_photo suppressed at feedback>=1000; fires below threshold

Also fix datetime.utcnow() deprecation in aggregator._days_since() and test helper
— replaced with timezone-aware datetime.now(timezone.utc) throughout.
2026-04-16 13:14:20 -07:00
..
__init__.py feat: add metadata scorer, photo hash dedup, and trust aggregator 2026-03-25 13:08:55 -07:00
test_aggregator.py test: aggregator coverage for zero_feedback, long_on_market, significant_price_drop 2026-04-16 13:14:20 -07:00
test_metadata.py feat: add metadata scorer, photo hash dedup, and trust aggregator 2026-03-25 13:08:55 -07:00
test_photo.py feat: add metadata scorer, photo hash dedup, and trust aggregator 2026-03-25 13:08:55 -07:00