Skip to content

Conversation

@eschmidt42
Copy link
Owner

This pull request adds a new test for the decision tree visualization functionality. The test ensures that the printed representation of a sample decision tree matches the expected output.

Testing improvements:

  • Added a new test, test_show_tree, in tests/decisiontree/test_visualize.py to verify that the show_tree function outputs the correct tree structure using a sample decision tree and output snapshot comparison.
  • Introduced a sample_decision_tree pytest fixture to provide a reusable sample tree for testing purposes.

@eschmidt42 eschmidt42 merged commit 178b16d into main Aug 17, 2025
4 checks passed
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