Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding download on RequestExecutor #133

Merged
merged 3 commits into from
Mar 10, 2021
Merged

Adding download on RequestExecutor #133

merged 3 commits into from
Mar 10, 2021

Conversation

barrault01
Copy link
Contributor

Hello I think the download of the reports should be through downloadTask instead of a dataTask so I recreate a new method to user downloadTask instead of dataTask. I was not able to run the tests. Can you helped me run it?

@barrault01 barrault01 requested a review from AvdLee as a code owner March 5, 2021 01:15
@SwiftLeeBot
Copy link
Collaborator

SwiftLeeBot commented Mar 5, 2021

Messages
📖

View more details on Bitrise

📖 AppStoreConnect-Swift-SDK: Executed 168 tests, with 0 failures (0 unexpected) in 0.529 (1.056) seconds

AppStoreConnect-Swift-SDKTests.xctest: Coverage: 99.56

File Coverage
APIProviderTests.swift 97.66%

AppStoreConnect_Swift_SDK.framework: Coverage: 80.79

File Coverage
RequestExecutor.swift 100.0%
DefaultRequestExecutor.swift 0.0% ⚠️
APIProvider.swift 86.93%

Generated by 🚫 Danger Swift against 0fba0da

Copy link
Owner

@AvdLee AvdLee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks great! I see there are a few new methods regarding downloading. Could you write tests for these?

Comment on lines 160 to 161


Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Comment on lines 56 to 57


Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

@barrault01
Copy link
Contributor Author

@AvdLee I remove the extras lines add some tests and put a time zone on the testDateDecoding because it was failing on my computer has I am on an other time zone.

Copy link
Owner

@AvdLee AvdLee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all good, thanks a lot!

func testDateDecoding() throws {
let decoder = APIProvider.jsonDecoder
let outputFormatter = DateFormatter()
outputFormatter.dateFormat = "E, d MMM yyyy HH:mm:ss Z"
outputFormatter.locale = Locale(identifier: "en_US_POSIX")

outputFormatter.timeZone = TimeZone(identifier: "GMT")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

@AvdLee AvdLee merged commit d5ca03e into AvdLee:master Mar 10, 2021
@SwiftLeeBot
Copy link
Collaborator

Congratulations! 🎉 This was released as part of Release 1.4.0 🚀

Generated by GitBuddy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants