fix test expectations to match actual exception output format
Some checks failed
Build Deb-Mock Package / build (push) Failing after 1m15s
Test Deb-Mock Build / test (push) Failing after 55s

This commit is contained in:
robojerk 2025-08-03 22:43:49 +00:00
parent 0ba814ddad
commit cf4c20d513
2 changed files with 89 additions and 0 deletions

View file

@ -30,6 +30,7 @@ class TestDebMockError:
error = DebMockError("File operation failed", context=context)
expected = """Error: File operation failed
Context:
file: /path/to/file
operation: read"""
@ -41,6 +42,7 @@ Context:
error = DebMockError("Operation failed", suggestions=suggestions)
expected = """Error: Operation failed
Suggestions:
1. Try again
2. Check permissions
@ -55,8 +57,10 @@ Suggestions:
context=context, suggestions=suggestions)
expected = """Error: Invalid configuration
Context:
config_file: /etc/deb-mock.conf
Suggestions:
1. Check config syntax
2. Verify file exists"""