-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes: various fixes for payload loading, mocked responses #55
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for the delay
I'm a bit short on time, so I can't go deep on this (let alone test things out). I have just some minor notes, but I'm fine with merging this as is at the moment
@@ -35,6 +35,8 @@ def test_endpoint( | |||
method: str = "GET", | |||
expected_status_codes: Union[list[int], int] = [200], | |||
return_response: bool = False, | |||
mock_response_content: bytes = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't seem to find where this mock_response_content
is being used, is it necessary to add this?
except Exception as e: | ||
_log.error(f"Failed to create process graph: {e}") | ||
print(f"Failed to create process graph: {e}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just doing a print on any exception seems like asking for trouble down the line. Why not fail hard just here?
Fixed: various tests had problems with loading payloads.
Added: functionality to use mocked response data to quickly test what in a response needs to be changetd