You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
PadelClub/PadelClubTests/SynchronizationTests.swift

33 lines
752 B

//
// SynchronizationTests.swift
// PadelClubTests
//
// Created by Laurent Morvillier on 09/10/2024.
//
import Testing
import LeStorage
@testable import PadelClub
struct SynchronizationTests {
let username: String = "laurent"
let password: String = "StaxKikoo12"
init() {
StoreCenter.main.configureURLs(secureScheme: false, domain: "127.0.0.1:8000")
}
@Test func synchronizationTest() async throws {
_ = try await self.login()
await StoreCenter.main.synchronizeLastUpdates()
}
func login() async throws -> CustomUser {
let user: CustomUser = try await StoreCenter.main.service().login(username: self.username, password: self.password)
return user
}
}