Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

GeraldIr
Copy link
Member

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

Copy link
Member

@soxofaan soxofaan left a 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,
Copy link
Member

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}")
Copy link
Member

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?

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