Implement initial song project domain models

This commit is contained in:
Codex
2026-09-13 13:18:08 +02:00
parent 57867bb3cc
commit 1993800f27
19 changed files with 1359 additions and 4 deletions
@@ -0,0 +1,18 @@
import MusicAssistantCore
import XCTest
final class AppConfigurationTests: XCTestCase {
func testDevelopmentConfigurationReadsKnownEnvironmentKeys() {
let configuration = AppConfiguration.development(environment: [
"MUSIC_ASSISTANT_OPENAI_API_KEY": "openai-test-key"
])
XCTAssertEqual(configuration.openAIAPIKey, "openai-test-key")
}
func testDevelopmentConfigurationAllowsMissingSecrets() {
let configuration = AppConfiguration.development(environment: [:])
XCTAssertNil(configuration.openAIAPIKey)
}
}