@pytest.fixture(scope='function')
def payload_builder(user: User):

    def builder(account: Account, category: Category, created_on: datetime) -> OperationPayload:
        return OperationPayload(user=user, amount=Decimal('199.90'), account=account.key, category=category.key, operation_type=OperationType.expense, created_on=created_on)
    return builder
@pytest.fixture(scope='function')
def payload_builder(user: User):

    def builder(account: Account, category: Category, created_on: datetime) -> OperationPayload:
        return OperationPayload(user=user, amount=Decimal('199.90'), account=account.key, category=category.key, operation_type=OperationType.expense, created_on=created_on)
    return builder