-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
test: enhance tests #9334
test: enhance tests #9334
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.
🙏
crates/test-utils/src/util.rs
Outdated
@@ -893,6 +893,15 @@ impl TestCommand { | |||
self.assert().success() | |||
} | |||
|
|||
/// Runs the command and asserts that it resulted in success, with expected JSON data. | |||
#[track_caller] | |||
pub fn assert_json_response(&mut self, expected: Inline) { |
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.
assert_json_stdout
?
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.
yep, changed
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
No description provided.