Skip to content

Abstract away example.org in interface tests - #204

Merged
florimondmanca merged 1 commit into
masterfrom
fm/test-server
Oct 2, 2020
Merged

Abstract away example.org in interface tests#204
florimondmanca merged 1 commit into
masterfrom
fm/test-server

Conversation

@florimondmanca

@florimondmancaflorimondmanca commented Oct 2, 2020

Copy link
Copy Markdown
Contributor

Attempt at reducing the scope of #194: as a first step, make our tests agnostic to which "live" endpoint we're hitting, by adding a small Server class and using it in test_interfaces.py (i.e. where we're actually hitting example.org).

Next step would be to add Hypercorn, switch Server's properties so that it points to localhost:<port>, instead of example.org, and use that updated version in fixtures.

Diff size is still not negligible, but hopefully this is a non-controversial and easily reviewable change.

@florimondmancaflorimondmanca changed the title Decouple tests from hitting example.orgAbstract away example.org in interface testsOct 2, 2020
@florimondmanca
florimondmanca requested a review from a teamOctober 2, 2020 21:08

@lovelydinosaurlovelydinosaur left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great approach, yup! 👍

@florimondmanca
florimondmanca merged commit af993c3 into masterOct 2, 2020
@florimondmanca
florimondmanca deleted the fm/test-server branch October 2, 2020 21:44
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants

@florimondmanca@lovelydinosaur