Skip to content

Commit

Permalink
test: Update some old tests
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Weidmann <[email protected]>
  • Loading branch information
PhilippeWeidmann committed Feb 7, 2025
1 parent 26f39da commit 55b0685
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ jobs:
echo -e "enum Env {\n static let token = \"$ACCESS_TOKEN\"\n\n static let driveId = 420132\n\n static let userId = $USER_ID\n\n static let inviteUserId = $INVITE_USER_ID\n\n static let inviteMail = \"$INVITE_EMAIL\"\n\n static let inviteTeam = 0\n\n static let commonDocumentsId = 3\n}" > $ENV_PATH
- name: Build
run: tuist install && tuist generate && tuist build --clean kDrive
- name: Test Local
run: tuist generate && tuist test kDriveTests
- name: Test API
run: tuist test kDriveAPITests --test-targets kDriveAPITests/DriveApiTests
run: tuist generate && tuist test kDriveAPITests --test-targets kDriveAPITests/DriveApiTests
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ final class UTSceneRestorationMetadata: XCTestCase {
XCTAssertEqual(metadata["filesIds"] as? [Int], [1337])
XCTAssertEqual(metadata["currentIndex"] as? Int, Int(0))
XCTAssertEqual(metadata["normalFolderHierarchy"] as? Bool, true)
XCTAssertEqual(metadata["presentationOrigin"] as? PresentationOrigin, .activities)
XCTAssertEqual(metadata["presentationOrigin"] as? String, PresentationOrigin.activities.rawValue)
}

@MainActor func testFileDetailViewController() {
Expand Down
2 changes: 2 additions & 0 deletions kDriveTests/kDriveCore/Drive/ITDrive.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ final class ITDrive: XCTestCase {
}

let decoder = JSONDecoder()
decoder.keyDecodingStrategy = .convertFromSnakeCase

// WHEN
do {
Expand All @@ -62,6 +63,7 @@ final class ITDrive: XCTestCase {
}

let decoder = JSONDecoder()
decoder.keyDecodingStrategy = .convertFromSnakeCase

// WHEN
do {
Expand Down

0 comments on commit 55b0685

Please sign in to comment.