can fetch zenshuu with tag

This commit is contained in:
Bel LaPointe
2025-04-27 12:56:33 -06:00
parent ba429f6028
commit f95563e849
5 changed files with 26 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ func TestFeeds(t *testing.T) {
t.Run("crud", func(t *testing.T) {
ctx := db.Test(t, ctx)
id, err := feeds.Insert(ctx, "url", "cron", "pattern")
id, err := feeds.Insert(ctx, "url", "cron", "pattern", "tag")
if err != nil {
t.Fatal("cannot insert:", err)
}
@@ -51,6 +51,9 @@ func TestFeeds(t *testing.T) {
if got.Version.Pattern != "pattern" {
t.Error("bad version.pattern")
}
if got.Version.Tag != "tag" {
t.Error("bad version.tag")
}
if !got.Execution.Executed.IsZero() {
t.Error("execution.executed")