feat: Begins live database client tests.
All checks were successful
CI / Linux Tests (push) Successful in 5m35s
All checks were successful
CI / Linux Tests (push) Successful in 5m35s
This commit is contained in:
29
Tests/DatabaseClientTests/ProjectTests.swift
Normal file
29
Tests/DatabaseClientTests/ProjectTests.swift
Normal file
@@ -0,0 +1,29 @@
|
||||
import Dependencies
|
||||
import DependenciesTestSupport
|
||||
import Fluent
|
||||
import FluentSQLiteDriver
|
||||
import ManualDCore
|
||||
import Testing
|
||||
import Vapor
|
||||
|
||||
@testable import DatabaseClient
|
||||
|
||||
@Suite
|
||||
struct ProjectTests {
|
||||
|
||||
@Test
|
||||
func sanity() {
|
||||
#expect(Bool(true))
|
||||
}
|
||||
|
||||
// @Test
|
||||
// func createProject() {
|
||||
// try await withDatabase(migrations: Project.Migrate()) {
|
||||
// $0.database.projects = .live(database: $1)
|
||||
// } operation: {
|
||||
// @Dependency(\.database.projects) var projects
|
||||
//
|
||||
// let project = try await projects.c
|
||||
// }
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user