Skip to content

Commit

Permalink
chore: fix init in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Nov 23, 2021
1 parent 2e37987 commit 8575fc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/integration/worker/test_get_supply.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from sqlmodel import select

from icon_metrics.data.db_init import init_db
from icon_metrics.models.metrics import Supply
from icon_metrics.workers.supply_cron import get_supply


def test_get_supply(db):
init_db()
with db as session:
get_supply(session, 0)
result = session.execute(select(Supply))
Expand Down

0 comments on commit 8575fc5

Please sign in to comment.