b24d5c03a1
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
17 lines
277 B
Go
17 lines
277 B
Go
package entity
|
|
|
|
import "testing"
|
|
|
|
func TestPhoto_Yaml(t *testing.T) {
|
|
t.Run("create from fixture", func(t *testing.T) {
|
|
m := PhotoFixtures.Get("Photo01")
|
|
m.PreloadFiles()
|
|
result, err := m.Yaml()
|
|
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
|
|
t.Logf("YAML: %s", result)
|
|
})
|
|
}
|