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

Port more tests to munit #3983

Merged
merged 1 commit into from Dec 6, 2020
Merged

Conversation

cquiroz
Copy link
Member

@cquiroz cquiroz commented Dec 5, 2020

This is another batch of tests ported to munit focused on tests using Http4sLegacyMatchers. I hope with another batch I can remove the legacy matcher classes.

Signed-off-by: Carlos Quiroz <carlos.m.quiroz@gmail.com>
body: String
)

// test("FollowRedirect should ggfollow the proper strategy") {
Copy link
Member Author

Choose a reason for hiding this comment

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

This test was marked as pending and it is a bit hard to port as it uses the Tables feature of spec. Instead I just commented it out. Perhaps it should be removed

Copy link
Member

Choose a reason for hiding this comment

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

Drop it for now. #3986 so it can be revived later, if we can.

EntityEncoder.simple[IO, ErrorJson](`Content-Type`(MediaType.application.json))(json =>
Chunk.bytes(json.value.getBytes()))

// TODO: These won't work without an Eq for (Message[IO], Boolean) => DecodeResult[IO, A]
Copy link
Member Author

Choose a reason for hiding this comment

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

This was commented in the original

assert(EntityDecoder.text[IO].matchesMediaType(MediaType.text.css))
}

/* TODO: Parameterization
Copy link
Member Author

Choose a reason for hiding this comment

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

It was commented in the original

Copy link
Member

@rossabaker rossabaker left a comment

Choose a reason for hiding this comment

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

Nice. This is a thankless task, but I think it's moving us toward a better place.

@rossabaker rossabaker merged commit 62a4c0b into http4s:series/0.21 Dec 6, 2020
@rossabaker
Copy link
Member

Do you want to take care of the merges again? I already did dotty, because it was trivial.

@cquiroz
Copy link
Member Author

cquiroz commented Dec 6, 2020

Sure I'm do main and cats effect 3 which I guess will still not compile

This was referenced Dec 6, 2020
rossabaker added a commit to http4s/http4s-servlet that referenced this pull request Apr 3, 2022
armanbilge pushed a commit to http4s/http4s-play-json that referenced this pull request May 2, 2022
armanbilge pushed a commit to http4s/http4s-prometheus-metrics that referenced this pull request May 2, 2022
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.

None yet

2 participants