diff --git a/tests/test_tax.py b/tests/test_tax.py index d5de373..ca103c9 100644 --- a/tests/test_tax.py +++ b/tests/test_tax.py @@ -99,6 +99,16 @@ def lots_of(market_id): conn.close() +def consumptions(tx_id): + conn = database.connect() + try: + return [dict(row) for row in conn.execute( + "SELECT * FROM lot_consumptions WHERE tx_id = ? ORDER BY id", (tx_id,) + ).fetchall()] + finally: + conn.close() + + class TaxTestCase(unittest.TestCase): def setUp(self): self._directory = tempfile.TemporaryDirectory()