Skip to content

tests: FileNotFound consistently raised & tested#110

Merged
ns-rse merged 1 commit intomainfrom
ns-rse/80-file-not-found
Feb 3, 2025
Merged

tests: FileNotFound consistently raised & tested#110
ns-rse merged 1 commit intomainfrom
ns-rse/80-file-not-found

Conversation

@ns-rse
Copy link
Copy Markdown
Collaborator

@ns-rse ns-rse commented Feb 3, 2025

Closes #80

  • Ensures FileNotFound error is consistently raised across modules.
  • Adds a test for each module that FileNotFound error is raised.
  • Standardises importing of module rather than functions across all tests.

@ns-rse ns-rse added v0.1.0 enhancement New feature or request labels Feb 3, 2025
Copy link
Copy Markdown
Collaborator

@SylviaWhittle SylviaWhittle left a comment

Choose a reason for hiding this comment

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

<disclosure: not tested locally but read all the lines, don't see how it could go wrong given those tests that have been added and pass>

Looks good! Thank you 🙏

@SylviaWhittle
Copy link
Copy Markdown
Collaborator

(I assume the yaml pre-commit error is not an issue)

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 3, 2025

Codecov Report

Attention: Patch coverage is 94.11765% with 1 line in your changes missing coverage. Please review.

Project coverage is 74.62%. Comparing base (f282c31) to head (ac9753c).
Report is 244 commits behind head on main.

Files with missing lines Patch % Lines
AFMReader/ibw.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #110      +/-   ##
==========================================
+ Coverage   65.87%   74.62%   +8.75%     
==========================================
  Files           3        8       +5     
  Lines         337      607     +270     
==========================================
+ Hits          222      453     +231     
- Misses        115      154      +39     

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

Closes #80

- Ensures `FileNotFound` error is consistently raised across modules.
- Adds a test for each module that `FileNotFound` error is raised.
- Standardises importing of module rather than functions across all tests.
- Adds the `--unsafe` argument to `check_yaml` pre-commit hook so it doesn't complain about `mkdocs.yaml`.
@ns-rse ns-rse force-pushed the ns-rse/80-file-not-found branch from c12bb94 to ac9753c Compare February 3, 2025 16:22
@ns-rse
Copy link
Copy Markdown
Collaborator Author

ns-rse commented Feb 3, 2025

(I assume the yaml pre-commit error is not an issue)

No, but I know how to solve that having just done so on TopoStats so will squeeze it into this PR, good spot, thanks.

@ns-rse ns-rse merged commit 3cf9e5d into main Feb 3, 2025
@ns-rse ns-rse deleted the ns-rse/80-file-not-found branch February 3, 2025 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request v0.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consistently raise FileNotFound errors across each load_*() functions.

3 participants