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

Inline axum-test-helper. #33

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Conversation

SamirTalwar
Copy link
Contributor

Its dependency tree does not agree with us.

We can simply reproduce the TestClient from the internals of axum ourselves (which is what axum-test-helper does, too).

Our version has even fewer features, because we only need to support GET requests.

Its dependency tree does not agree with us.

We can simply reproduce the [`TestClient`][test_client.rs] from the
internals of `axum` ourselves (which is what `axum-test-helper` does,
too).

Our version has even fewer features, because we only need to support
`GET` requests.

[test_client.rs]: https://github.com/tokio-rs/axum/blob/axum-v0.6.20/axum/src/test_helpers/test_client.rs
use super::*;

#[tokio::test]
async fn capabilities_match_ndc_spec_version() -> Result<()> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is pointless, now that ndc_models exports VERSION and we use it in the SDK.

@soupi
Copy link
Contributor

soupi commented Aug 23, 2024

Could this be used by other clients of the sdk, like ndc-postgres?

@SamirTalwar
Copy link
Contributor Author

@soupi: Yes, I'd be up for pulling it into a separate crate if we find it useful.

@SamirTalwar SamirTalwar added this pull request to the merge queue Aug 26, 2024
Merged via the queue into main with commit 8954156 Aug 26, 2024
10 checks passed
@SamirTalwar SamirTalwar deleted the samirtalwar/remove-axum-test-helper branch August 26, 2024 08:24
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