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

Unit tests TargetAndroid.build_package() #1069

Merged

Conversation

AndreMiras
Copy link
Member

Increases android.py coverage from 24% to 36% and total coverage from 25% to 29%.
Note that this tests would have caught the glob issue reported in #1044.

@AndreMiras AndreMiras changed the title Unit tests TargetAndroid.build_package() WIP: Unit tests TargetAndroid.build_package() Apr 13, 2020
@AndreMiras AndreMiras force-pushed the feature/test_android_build_package branch from b297205 to 6101e99 Compare April 13, 2020 18:03
@AndreMiras AndreMiras changed the title WIP: Unit tests TargetAndroid.build_package() Unit tests TargetAndroid.build_package() Apr 13, 2020
opacam
opacam previously approved these changes Apr 13, 2020
Copy link
Member

@opacam opacam left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 44 to 47
def patch_os_listdir():
return mock.patch("os.listdir")


Copy link
Member

Choose a reason for hiding this comment

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

Nice, 4.9% more of coverage 😄

Note: I think that we never use this mock, right?...are you planing to use it later?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes good catch thanks. I actually started using it and decided no to for now.
I've removed it now

Increases android.py coverage from 24% to 36% and total coverage from
25% to 29%.
Note that this tests would have caught the glob issue reported in kivy#1044.
Copy link
Member

@opacam opacam left a comment

Choose a reason for hiding this comment

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

👍

@AndreMiras AndreMiras merged commit b566125 into kivy:master Apr 13, 2020
@AndreMiras AndreMiras deleted the feature/test_android_build_package branch April 13, 2020 19:32
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.

2 participants