cowprotocol / dune-sync

Components for syncing off-chain data with Dune Community Sources
4 stars 1 forks source link

Setup Mock Orderbook DBs for unit testing #6

Open bh2smith opened 1 year ago

bh2smith commented 1 year ago

In #3, we introduce some tests that are actually "integration tests", however, if we want to unit test this without relying on external sources, we should prepare two DBs (barn and orderbook) -- both populated with necessary seed data.

This will be similar to what we have done here:

https://github.com/cowprotocol/solver-rewards/tree/main/tests/db

bh2smith commented 1 year ago

This issue belongs in solver-rewards