@@ -4,17 +4,17 @@ import XCTest
44
55@testable import ServiceUpdateMigration
66
7- final class MigrateTo230Tests : XCTestCase {
8- let userDefaults = UserDefaults ( suiteName: " MigrateTo230Tests " ) !
7+ final class MigrateTo240Tests : XCTestCase {
8+ let userDefaults = UserDefaults ( suiteName: " MigrateTo240Tests " ) !
99
1010 override func tearDown( ) async throws {
11- userDefaults. removePersistentDomain ( forName: " MigrateTo230Tests " )
11+ userDefaults. removePersistentDomain ( forName: " MigrateTo240Tests " )
1212 }
1313
14- func test_migrateTo230_no_data_to_migrate ( ) async throws {
14+ func test_migrateTo240_no_data_to_migrate ( ) async throws {
1515 let keychain = FakeKeyChain ( )
1616
17- try migrateTo230 ( defaults: userDefaults, keychain: keychain)
17+ try migrateTo240 ( defaults: userDefaults, keychain: keychain)
1818
1919 XCTAssertTrue ( try keychain. getAll ( ) . isEmpty, " No api key to migrate " )
2020
@@ -70,7 +70,7 @@ final class MigrateTo230Tests: XCTestCase {
7070 }
7171 }
7272
73- func test_migrateTo230_migrate_data_use_openAI ( ) async throws {
73+ func test_migrateTo240_migrate_data_use_openAI ( ) async throws {
7474 let keychain = FakeKeyChain ( )
7575
7676 userDefaults. set ( " Key1 " , forKey: " OpenAIAPIKey " )
@@ -85,7 +85,7 @@ final class MigrateTo230Tests: XCTestCase {
8585 userDefaults. set ( " openAI " , forKey: " ChatFeatureProvider " )
8686 userDefaults. set ( " openAI " , forKey: " EmbeddingFeatureProvider " )
8787
88- try migrateTo230 ( defaults: userDefaults, keychain: keychain)
88+ try migrateTo240 ( defaults: userDefaults, keychain: keychain)
8989
9090 XCTAssertEqual ( try keychain. getAll ( ) , [
9191 " OpenAI " : " Key1 " ,
@@ -156,7 +156,7 @@ final class MigrateTo230Tests: XCTestCase {
156156 }
157157 }
158158
159- func test_migrateTo230_migrate_data_use_azureOpenAI ( ) async throws {
159+ func test_migrateTo240_migrate_data_use_azureOpenAI ( ) async throws {
160160 let keychain = FakeKeyChain ( )
161161
162162 userDefaults. set ( " Key1 " , forKey: " OpenAIAPIKey " )
@@ -171,7 +171,7 @@ final class MigrateTo230Tests: XCTestCase {
171171 userDefaults. set ( " azureOpenAI " , forKey: " ChatFeatureProvider " )
172172 userDefaults. set ( " azureOpenAI " , forKey: " EmbeddingFeatureProvider " )
173173
174- try migrateTo230 ( defaults: userDefaults, keychain: keychain)
174+ try migrateTo240 ( defaults: userDefaults, keychain: keychain)
175175
176176 let chatModels = userDefaults. value ( for: \. chatModels)
177177 let embeddingModels = userDefaults. value ( for: \. embeddingModels)
0 commit comments