File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -51,19 +51,27 @@ class CardserviceAPITests: XCTestCase {
51
51
52
52
func testLoginSuccess( ) async throws {
53
53
if ProcessInfo . processInfo. environment [ " CI " ] != nil {
54
- print ( " Skipping successful login test in CI. " )
54
+ print ( " Skipping test in CI. " )
55
55
return
56
56
}
57
57
_ = try await Cardservice . login ( username: username, password: password)
58
58
}
59
59
60
60
func testFetchCarddata( ) async throws {
61
+ if ProcessInfo . processInfo. environment [ " CI " ] != nil {
62
+ print ( " Skipping test in CI. " )
63
+ return
64
+ }
61
65
let cardservice = try await Cardservice . login ( username: username, password: password)
62
66
let carddata = try await cardservice. carddata ( )
63
67
XCTAssert ( !carddata. isEmpty)
64
68
}
65
69
66
70
func testFetchTransactions( ) async throws {
71
+ if ProcessInfo . processInfo. environment [ " CI " ] != nil {
72
+ print ( " Skipping test in CI. " )
73
+ return
74
+ }
67
75
let cardservice = try await Cardservice . login ( username: username, password: password)
68
76
let oneWeekAgo = Date ( ) . addingTimeInterval ( - 1 * 60 * 60 * 24 * 7 )
69
77
_ = try await cardservice. transactions ( begin: oneWeekAgo)
You can’t perform that action at this time.
0 commit comments