1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-01-27 07:46:15 +01:00

20 lines
487 B
Swift
Raw Normal View History

2021-01-22 14:27:37 +08:00
import XCTest
2021-01-27 16:01:20 +08:00
import Combine
2021-01-22 14:27:37 +08:00
@testable import MastodonSDK
final class MastodonSDKTests: XCTestCase {
2021-01-27 16:01:20 +08:00
var disposeBag = Set<AnyCancellable>()
2021-01-28 14:52:35 +08:00
2021-01-29 19:38:11 +08:00
let session = URLSession(configuration: .ephemeral)
var domain: String { MastodonSDKTests.environmentVariable(key: "domain") }
// TODO: replace with test account token
var testToken = ""
2021-01-28 14:52:35 +08:00
2021-01-29 19:38:11 +08:00
static func environmentVariable(key: String) -> String {
return ProcessInfo.processInfo.environment[key]!
2021-01-28 14:52:35 +08:00
}
2021-01-22 14:27:37 +08:00
2021-01-28 14:52:35 +08:00
}