Skip to content

Conversation

tleonhardt
Copy link
Member

Move two test files that don't need to be isolated from tests_isolated directory to tests directory.

Also:

  • Remove unnecessary nested directory under tests_isolated for the one remaining test file there.

This is the first step in fixing the tests so none of them need to be isolated. The tests in tests_isolated/test_commandset.py follow bad practices where classes are modified instead of instances of classes.

…d to tests

Also:
- Remove unnecessary nested directory under tests_isolated for the one remaining test file there.

This is the first step in fixing the tests so none of them need to be isolated.  The tests in tests_isolated/test_commandset.py follow bad practices where classes are modified instead of instances of classes.
Copy link
Contributor

🤖 Hi @tleonhardt, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

Copy link

codecov bot commented Sep 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.90%. Comparing base (bad67dc) to head (3194dbe).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1519      +/-   ##
==========================================
- Coverage   98.92%   98.90%   -0.03%     
==========================================
  Files          21       21              
  Lines        4933     4933              
==========================================
- Hits         4880     4879       -1     
- Misses         53       54       +1     
Flag Coverage Δ
unittests 98.90% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

📋 Review Summary

This pull request refactors the test suite by moving tests from the tests_isolated directory to the tests directory and adding a new ExternalTestMixin to tests/conftest.py to help with testing. The changes are well-structured and improve the organization of the tests.

🔍 General Feedback

  • The new ExternalTestMixin is a great addition for testing cmd2 applications.
  • The docstrings in the new mixin could be more descriptive to improve clarity and maintainability.

@tleonhardt tleonhardt merged commit 26ca1f9 into main Sep 16, 2025
29 of 30 checks passed
@tleonhardt tleonhardt deleted the consolidate-tests branch September 16, 2025 23:58
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.

1 participant