Skip to content

Conversation

@jketema
Copy link
Contributor

@jketema jketema commented Jul 2, 2023

Follow up to #12789, #13346, #13426, and #13498. This addresses the last remaining Python tests and deprecates the class-based interface.

@github-actions github-actions bot added the Python label Jul 2, 2023
jketema added 3 commits July 3, 2023 10:22
These were missed earlier, and still referred to the classes from the legacy
interface and not the parameterized module.
Comment on lines -41 to -47
module MakeFlowTest<FlowTestSig Impl> {
import MakeTest<FlowTest<Impl>>
}

module MakeFlowTest2<FlowTestSig Impl1, FlowTestSig Impl2> {
import MakeTest<MergeTests<FlowTest<Impl1>, FlowTest<Impl2>>>
}
Copy link
Contributor Author

@jketema jketema Jul 3, 2023

Choose a reason for hiding this comment

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

I decided to drop this, and just use the bodies directly, as I find these are rather odd looking special cases. And to avoid having different point solutions both here and for RoutingTest below.


class HttpServerHttpResponseTest extends InlineExpectationsTest {
File file;
abstract class DedicatedResponseTest extends string {
Copy link
Contributor Author

@jketema jketema Jul 3, 2023

Choose a reason for hiding this comment

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

Note that this moves part of the functionality that first occurred in a number of individual tests to this shared file. I decided not to introduce another parameterized module that then needs to be instantiated, as that would affect many tests.

@jketema jketema marked this pull request as ready for review July 3, 2023 08:31
@jketema jketema requested a review from a team as a code owner July 3, 2023 08:31
@calumgrant calumgrant requested a review from RasmusWL July 3, 2023 09:06
RasmusWL
RasmusWL previously approved these changes Jul 11, 2023
Copy link
Member

@RasmusWL RasmusWL left a comment

Choose a reason for hiding this comment

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

Thanks so much ❤️ 🎉

I'll hold back from bike-shedding about how to do DedicatedResponseTest, since it doesn't really matter 😅

@jketema
Copy link
Contributor Author

jketema commented Jul 11, 2023

I'll hold back from bike-shedding about how to do DedicatedResponseTest, since it doesn't really matter 😅

Thanks. I'd be curious to know though how you would have solved this.

@jketema jketema merged commit 92ee318 into github:main Jul 11, 2023
@jketema jketema deleted the inline-5 branch July 11, 2023 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants