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

fix issue with Spider class when it returns an empty list. #47

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

shahzebsiddiqui
Copy link
Member

No description provided.

…ulefiles are found. This causes

an exception since output is a dictionary.
Add regression test to test for invalid directory. The exception will be SystemExit

We also add test coverage for branch partial coverage when using debug=True. We added test with debug=False.

change sys.exit to raise SystemExit when raising exception in ModuleLoadTest class
@codecov
Copy link

codecov bot commented Mar 15, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +2.46 🎉

Comparison is base (f180ab9) 95.58% compared to head (26bd554) 98.04%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #47      +/-   ##
==========================================
+ Coverage   95.58%   98.04%   +2.46%     
==========================================
  Files           4        4              
  Lines         204      205       +1     
  Branches       51       52       +1     
==========================================
+ Hits          195      201       +6     
  Misses          1        1              
+ Partials        8        3       -5     
Impacted Files Coverage Δ
lmod/moduleloadtest.py 97.77% <100.00%> (-0.05%) ⬇️
lmod/spider.py 93.18% <100.00%> (+0.32%) ⬆️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@shahzebsiddiqui shahzebsiddiqui merged commit b925aca into master Mar 15, 2023
@shahzebsiddiqui shahzebsiddiqui deleted the fix_spider_exception_with_empty_list branch March 15, 2023 20:43
@shahzebsiddiqui shahzebsiddiqui linked an issue Mar 21, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug with moduleloadtest with directory that returns empty list
1 participant