feat: Adds equipment info database tests.
All checks were successful
CI / Linux Tests (push) Successful in 5m26s

This commit is contained in:
2026-01-30 15:16:09 -05:00
parent 754019eac4
commit 0b78950d14
3 changed files with 72 additions and 2 deletions

View File

@@ -9,10 +9,10 @@ struct ComponentLossTests {
@Test
func happyPaths() async throws {
try await withTestUser { user in
try await withTestUserAndProject { user, project in
@Dependency(\.database) var database
let project = try await database.projects.create(user.id, .mock)
// let project = try await database.projects.create(user.id, .mock)
let componentLoss = try await database.componentLosses.create(
.init(projectID: project.id, name: "Test", value: 0.2)