File size: 464 Bytes
df50319
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
from src.models.transaction import Transaction
from src.repositories.transaction_repository import TransactionRepository
from src.services.transaction_service import TransactionService

def test_create_transaction():
    transaction_repository = TransactionRepository()
    transaction_service = TransactionService(transaction_repository)
    transaction = transaction_service.create_transaction(1, 100.0, "deposit")
    assert isinstance(transaction, Transaction)