92e6c4fe1e
Extends DownloadSettings with 4 additional options: - Name: File name pattern for downloaded files (existed) - Disabled: Disables downloads - Originals: Only download files stored in "originals" folder - MediaRaw: Include RAW image files - MediaSidecar: Include metadata sidecar files (JSON, XMP, YAML)
25 lines
354 B
Go
25 lines
354 B
Go
package entity
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestLabelCounts(t *testing.T) {
|
|
results := LabelCounts()
|
|
|
|
if len(results) == 0 {
|
|
t.Fatal("at least one result expected")
|
|
}
|
|
|
|
for _, result := range results {
|
|
t.Logf("LABEL COUNT: %+v", result)
|
|
}
|
|
}
|
|
|
|
func TestUpdatePhotoCounts(t *testing.T) {
|
|
err := UpdateCounts()
|
|
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|