Add comprehensive test coverage for missing modules and core utilities#24
Merged
Add comprehensive test coverage for missing modules and core utilities#24
Conversation
- Add integration tests for crawlinginfo and joblog commands (previously missing)
- Add unit tests directory with tests for core modules:
- test_utils.py: Tests for to_utc_iso8601 and encode_to_urlsafe_base64
- test_settings.py: Tests for Settings dataclass and environment variable handling
- test_client.py: Tests for FessAPIClient including version parsing, HTTP method
selection (Fess 14 vs 15), error handling, and header management
- test_cli.py: Tests for the ping command with various output formats and status codes
- Add scheduler start/stop command tests to test_scheduler.py
- Add error handling tests for non-existent resources across multiple modules
- test_utils.py: Fix test_with_large_epoch to use correct expected value
for the epoch timestamp 2539424200000 (2050-06-21T11:36:40Z)
- test_scheduler.py: Update scheduler start/stop tests to be more resilient
- Schedulers without valid script data may fail to start in Fess
- Tests now verify command returns valid JSON/YAML structure rather than
expecting success status
- Tests verify output contains expected content for text format
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.
selection (Fess 14 vs 15), error handling, and header management