Skip to content

Commit

Permalink
Update pov_test.py
Browse files Browse the repository at this point in the history
The test results as written were inconsistent.  ValueErrors in the from_pov method return "Tree could not be reoriented".   ValueErrors in the path_to method should say "No path found".
  • Loading branch information
overho79 authored Oct 30, 2024
1 parent 5f70c9d commit 5e9191a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/practice/pov/pov_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def test_errors_if_source_does_not_exist(self):
tree.path_to("nonexistent", "x")
self.assertEqual(type(err.exception), ValueError)

self.assertEqual(err.exception.args[0], "Tree could not be reoriented")
self.assertEqual(err.exception.args[0], "No path found")

# Custom Utility Functions
def assertTreeEquals(self, result, expected):
Expand Down

0 comments on commit 5e9191a

Please sign in to comment.