Skip to content

Conversation

@Earth1283
Copy link
Owner

This commit expands test coverage to several modules that were previously untested: api/file.py, load_applications.py, and rm_trailing_space.py.

  • api/file.py: Tests for the file structure retrieval function (getFileStructure) now cover all its different modes. Tests for file/directory checking and removal functions have also been added.

  • load_applications.py: The application loading logic is now tested, including success cases, and failures like missing or invalid application.yml files.

  • rm_trailing_space.py: The whitespace cleaning functionality is now tested, ensuring it correctly modifies files with trailing whitespace and leaves others unchanged.

These new tests increase the total test coverage from 59% to 72%, making the project more robust and maintainable.

This commit expands test coverage to several modules that were previously untested: `api/file.py`, `load_applications.py`, and `rm_trailing_space.py`.

- **`api/file.py`**: Tests for the file structure retrieval function (`getFileStructure`) now cover all its different modes. Tests for file/directory checking and removal functions have also been added.

- **`load_applications.py`**: The application loading logic is now tested, including success cases, and failures like missing or invalid `application.yml` files.

- **`rm_trailing_space.py`**: The whitespace cleaning functionality is now tested, ensuring it correctly modifies files with trailing whitespace and leaves others unchanged.

These new tests increase the total test coverage from 59% to 72%, making the project more robust and maintainable.
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.

2 participants