update fix to unit price

This commit is contained in:
2025-07-03 10:55:52 -03:00
parent 5280f953c3
commit ce1c1b367e
6 changed files with 46 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
import os
from dataclasses import dataclass
import jsonlines
import pytest
PYTEST_TABLE_NAME = 'pytest'
@@ -59,3 +60,10 @@ def dynamodb_persistence_layer(dynamodb_client):
from layercake.dynamodb import DynamoDBPersistenceLayer
return DynamoDBPersistenceLayer(PYTEST_TABLE_NAME, dynamodb_client)
@pytest.fixture()
def dynamodb_seeds(dynamodb_client):
with jsonlines.open('tests/seeds.jsonl') as lines:
for line in lines:
dynamodb_client.put_item(TableName=PYTEST_TABLE_NAME, Item=line)