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

Add some missing exception tests for base.py #734

Merged
merged 2 commits into from
Sep 2, 2019

Conversation

itholic
Copy link
Contributor

@itholic itholic commented Sep 2, 2019

Found some missing exception tests in base.py

스크린샷 2019-09-02 오후 2 40 33

스크린샷 2019-09-02 오후 2 41 22

스크린샷 2019-09-02 오후 2 42 41

스크린샷 2019-09-02 오후 2 42 57

i added them some for doctest,

one for pytest

(but this test is currently being skipped for some reason

스크린샷 2019-09-02 오후 3 14 26

so maybe does not directly affect coverage.)

could someone check this when if available.

Thanks.

@@ -385,6 +385,9 @@ def astype(self, dtype):

>>> ser.rename("a").to_frame().set_index("a").index.astype('int64')
Int64Index([1, 2], dtype='int64', name='a')

>>> ser.astype('int63')
ValueError: Type int63 not understood
Copy link
Member

Choose a reason for hiding this comment

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

For such test, we should add it under koalas/tests/... rather than doctest because it becomes the part of documentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for comment. i'll fix and commit again

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i've fixed them!

@softagram-bot
Copy link

Softagram Impact Report for pull/734 (head commit: 01f9145)

⭐ Change Overview

Showing the changed files, dependency changes and the impact - click for full size
(Open in Softagram Desktop for full details)

📄 Full report

Impact Report explained. Give feedback on this report to [email protected]

@codecov-io
Copy link

codecov-io commented Sep 2, 2019

Codecov Report

Merging #734 into master will increase coverage by 0.16%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #734      +/-   ##
=========================================
+ Coverage   94.24%   94.4%   +0.16%     
=========================================
  Files          32      32              
  Lines        5579    5579              
=========================================
+ Hits         5258    5267       +9     
+ Misses        321     312       -9
Impacted Files Coverage Δ
databricks/koalas/series.py 95.18% <0%> (+0.17%) ⬆️
databricks/koalas/frame.py 95.12% <0%> (+0.28%) ⬆️
databricks/koalas/plot.py 94.91% <0%> (+1.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d8a7fa4...01f9145. Read the comment docs.

@HyukjinKwon HyukjinKwon merged commit 07ad0c2 into databricks:master Sep 2, 2019
@itholic itholic deleted the test_exception branch September 6, 2019 01:44
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.

4 participants