openmeter / ledger /annotations_test.go
Leon4gr45's picture
Upload folder using huggingface_hub (part 5)
cee2387 verified
Raw
History Blame Contribute Delete
398 Bytes
package ledger
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestTransactionTemplateCodeAnnotations(t *testing.T) {
t.Parallel()
annotations := TransactionAnnotations("customer.receivable.issue", TransactionDirectionForward)
code, err := TransactionTemplateCodeFromAnnotations(annotations)
require.NoError(t, err)
require.Equal(t, "customer.receivable.issue", code)
}