fix test expectations to match actual exception output format
This commit is contained in:
parent
0ba814ddad
commit
cf4c20d513
2 changed files with 89 additions and 0 deletions
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue