fix unit tests

This commit is contained in:
Evan Jarrett
2026-01-02 15:25:09 -06:00
parent 647c33e164
commit 506d8b002b
2 changed files with 17 additions and 14 deletions
+1
View File
@@ -38,6 +38,7 @@ func setupTestDB(t *testing.T) *sql.DB {
media_type TEXT NOT NULL,
config_digest TEXT,
config_size INTEGER,
artifact_type TEXT NOT NULL DEFAULT 'container-image',
created_at TIMESTAMP NOT NULL,
UNIQUE(did, repository, digest)
);
+16 -14
View File
@@ -571,21 +571,23 @@ func TestTemplateExecution_RepoCard(t *testing.T) {
// Sample data for repo-card template
data := struct {
OwnerHandle string
Repository string
IconURL string
Description string
StarCount int
PullCount int
IsStarred bool
OwnerHandle string
Repository string
IconURL string
Description string
StarCount int
PullCount int
IsStarred bool
ArtifactType string
}{
OwnerHandle: "alice.bsky.social",
Repository: "myapp",
IconURL: "",
Description: "A cool container image",
StarCount: 42,
PullCount: 1337,
IsStarred: true,
OwnerHandle: "alice.bsky.social",
Repository: "myapp",
IconURL: "",
Description: "A cool container image",
StarCount: 42,
PullCount: 1337,
IsStarred: true,
ArtifactType: "container-image",
}
buf := new(bytes.Buffer)