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 type error handling #16

Merged
merged 2 commits into from
Sep 8, 2024
Merged

Add type error handling #16

merged 2 commits into from
Sep 8, 2024

Conversation

LiaoU3
Copy link
Owner

@LiaoU3 LiaoU3 commented Sep 8, 2024

Add type error handling for _get_date_obj. It raise type error when getting an unexpected argument type.

Copy link

github-actions bot commented Sep 8, 2024

----------------------------------------------------------------
MarketTime/__init__.py                 2      0   100%
MarketTime/future_market_time.py     118      3    97%   31, 155, 177
MarketTime/market_time.py             44      1    98%   27
MarketTime/stock_market_time.py       36     27    25%   14-28, 34-45, 51-62
----------------------------------------------------------------
TOTAL                                200     31    84%

Copy link

codecov bot commented Sep 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.00%. Comparing base (5fc65c1) to head (2737725).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
+ Coverage   84.84%   85.00%   +0.15%     
==========================================
  Files           4        4              
  Lines         198      200       +2     
==========================================
+ Hits          168      170       +2     
  Misses         30       30              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Sep 8, 2024

----------------------------------------------------------------
MarketTime/__init__.py                 2      0   100%
MarketTime/future_market_time.py     118      3    97%   31, 155, 177
MarketTime/market_time.py             44      0   100%
MarketTime/stock_market_time.py       36     27    25%   14-28, 34-45, 51-62
----------------------------------------------------------------
TOTAL                                200     30    85%

@LiaoU3 LiaoU3 merged commit 6060250 into main Sep 8, 2024
4 checks passed
@LiaoU3 LiaoU3 deleted the error_handle branch September 8, 2024 10:42
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.

1 participant