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 test_sal_on_coco_dets failure being masked #143

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

stephencrowell
Copy link
Collaborator

Tests encapsulated in tests/utils/test_sal_on_coco_dets.py are displaying a "PASS" in pytest's output, but actually raising an exception under the hood and yielding a non-zero return code. The test case was incorrect (including a det with no score or pred value) and did not check the return code. This change fixes the test case and fixes the non-zero return code

@stephencrowell stephencrowell force-pushed the dev/fix-failure-masking branch 2 times, most recently from 97185b8 to d3637d1 Compare February 16, 2024 18:24
Copy link

codecov bot commented Feb 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cd4e8f4) 99.87% compared to head (756a55f) 99.87%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #143   +/-   ##
=======================================
  Coverage   99.87%   99.87%           
=======================================
  Files          57       57           
  Lines        2330     2339    +9     
=======================================
+ Hits         2327     2336    +9     
  Misses          3        3           
Flag Coverage Δ
unittests 99.87% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@Purg
Copy link
Member

Purg commented Feb 17, 2024

@stephencrowell Looks like you could probably register your GPG key with GitHub to get "verified" commits.

tests/utils/test_sal_on_coco_dets.py Outdated Show resolved Hide resolved
tests/utils/test_sal_on_coco_dets.py Outdated Show resolved Hide resolved
Copy link
Member

@brianhhu brianhhu left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

EDIT: @stephencrowell Can you fix the indent issue identified by the linter?

./tests/utils/test_sal_on_coco_dets.py:59:23: E128 continuation line under-indented for visual indent
./tests/utils/test_sal_on_coco_dets.py:82:23: E128 continuation line under-indented for visual indent

Copy link

sonarcloud bot commented Feb 21, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@brianhhu
Copy link
Member

LGTM, thanks!

@brianhhu brianhhu merged commit 2204e99 into XAITK:master Feb 22, 2024
25 checks passed
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