Additional Test Cases for Input Configuration#79
Merged
harryswift01 merged 4 commits intomainfrom Apr 1, 2025
Merged
Conversation
- Moved tests to individual files for better organization - Implemented temporary files and directories for dynamic testing - Integrated tests/data files for ease of use - Included an __init__.py file, that is empty, to allow for the import of the data directory as a module
…of a standalone file
…chy: - Implemented tests ensuring CLI > YAML > default precedence - Added validation for missing required arguments and invalid types - Verified that empty YAML files fall back to defaults correctly - Mocked file handling to test configuration loading behavior
jimboid
approved these changes
Apr 1, 2025
Member
jimboid
left a comment
There was a problem hiding this comment.
A solid improvement to the test system. Looks fine to merge
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.
Summary
This PR refactors the test structure for improved modularity and dynamic testing, integrates
tests/datafiles for ease of use, and adds comprehensive tests forConfigManagerargument merging and hierarchy.Changes
Refactor test structure for improved modularity and dynamic testing:
tests/datafiles for ease of use__init__.pyfile, that is empty, to allow for the import of the data directory as a moduleMoving test_CodeEntropy_imported into
tests/test_main_mcc.pyinstead of a standalone file:test_CodeEntropy_importedtotests/test_main_mcc.pyChange naming of test_mainmcc to
TestMainMcc:test_mainmcctoTestMainMccfor consistencyAdd comprehensive tests for ConfigManager argument merging and hierarchy:
Impact