test(global): add @pytest.mark.local marker for local-only tests (#170)#170
Merged
tiborsimko merged 8 commits intocernopendata:masterfrom Dec 17, 2025
Merged
Conversation
tiborsimko
added a commit
to tiborsimko/cernopendata-client
that referenced
this pull request
Dec 17, 2025
…nopendata#170) Mark tests that run without network access with @pytest.mark.local, allowing quick test runs during development. Remote tests (connecting to the CERN Open Data portal) remain unmarked and run by default.
de40650 to
6b125c5
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #170 +/- ##
==========================================
+ Coverage 80.88% 82.54% +1.65%
==========================================
Files 12 12
Lines 722 716 -6
==========================================
+ Hits 584 591 +7
+ Misses 138 125 -13
🚀 New features to boost your workflow:
|
tiborsimko
added a commit
to tiborsimko/cernopendata-client
that referenced
this pull request
Dec 17, 2025
…nopendata#170) Mark tests that run without network access with @pytest.mark.local, allowing quick test runs during development. Remote tests (connecting to the CERN Open Data portal) remain unmarked and run by default.
6b125c5 to
531cc99
Compare
tiborsimko
added a commit
to tiborsimko/cernopendata-client
that referenced
this pull request
Dec 17, 2025
Fix test_validate_retry_limit and test_validate_retry_sleep to call the correct validation functions instead of validate_recid.
tiborsimko
added a commit
to tiborsimko/cernopendata-client
that referenced
this pull request
Dec 17, 2025
…#170) Remove dead code checking for Python 2 unicode type in validate_directory().
tiborsimko
added a commit
to tiborsimko/cernopendata-client
that referenced
this pull request
Dec 17, 2025
tiborsimko
added a commit
to tiborsimko/cernopendata-client
that referenced
this pull request
Dec 17, 2025
…ndata#170) Add test case for using --filter without --output-value flag, which should display an error message.
tiborsimko
added a commit
to tiborsimko/cernopendata-client
that referenced
this pull request
Dec 17, 2025
Add test case for list-directory command when directory is empty, using mock to return empty file list.
tiborsimko
added a commit
to tiborsimko/cernopendata-client
that referenced
this pull request
Dec 17, 2025
Add unit tests for filter_matching_output and filter_metadata. Test when output_field is not in matching object. Test multiple matches without output_field. Test handling of $schema field in output_json.
2144013 to
b24ee6b
Compare
tiborsimko
added a commit
to tiborsimko/cernopendata-client
that referenced
this pull request
Dec 17, 2025
…endata#170) Add local unit tests for downloader filter functions. get_download_files_by_name: single, multiple, no match. get_download_files_by_regexp: extension, pattern, pre-filtered, no match. get_download_files_by_range: single, multiple, single file, pre-filtered.
psaiz
approved these changes
Dec 17, 2025
…nopendata#170) Mark tests that run without network access with @pytest.mark.local, allowing quick test runs during development. Remote tests (connecting to the CERN Open Data portal) remain unmarked and run by default.
Fix test_validate_retry_limit and test_validate_retry_sleep to call the correct validation functions instead of validate_recid.
…#170) Remove dead code checking for Python 2 unicode type in validate_directory().
…ndata#170) Add test case for using --filter without --output-value flag, which should display an error message.
Add test case for list-directory command when directory is empty, using mock to return empty file list.
Add unit tests for filter_matching_output and filter_metadata. Test when output_field is not in matching object. Test multiple matches without output_field. Test handling of $schema field in output_json.
…endata#170) Add local unit tests for downloader filter functions. get_download_files_by_name: single, multiple, no match. get_download_files_by_regexp: extension, pattern, pre-filtered, no match. get_download_files_by_range: single, multiple, single file, pre-filtered.
b24ee6b to
a93d2be
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mark tests that run without network access with @pytest.mark.local, allowing quick test runs during development. Remote tests (connecting to the CERN Open Data portal) remain unmarked and run by default.