2021-01-22 07:27:37 +01:00
|
|
|
import XCTest
|
2021-01-27 09:01:20 +01:00
|
|
|
import Combine
|
2021-01-22 07:27:37 +01:00
|
|
|
@testable import MastodonSDK
|
|
|
|
|
|
|
|
final class MastodonSDKTests: XCTestCase {
|
2021-01-27 09:01:20 +01:00
|
|
|
|
|
|
|
var disposeBag = Set<AnyCancellable>()
|
2021-01-28 07:52:35 +01:00
|
|
|
|
2021-01-29 12:38:11 +01:00
|
|
|
let session = URLSession(configuration: .ephemeral)
|
|
|
|
var domain: String { MastodonSDKTests.environmentVariable(key: "domain") }
|
2021-01-28 07:52:35 +01:00
|
|
|
|
2021-01-29 12:38:11 +01:00
|
|
|
static func environmentVariable(key: String) -> String {
|
|
|
|
return ProcessInfo.processInfo.environment[key]!
|
2021-01-28 07:52:35 +01:00
|
|
|
}
|
2021-01-22 07:27:37 +01:00
|
|
|
|
2021-01-28 07:52:35 +01:00
|
|
|
}
|