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

[tests] utils: refactor type-hint signatures. #12144

Conversation

jayaddison
Copy link
Contributor

Feature or Bugfix

  • Refactoring

Purpose

Detail

  • Consolidate to provision of a single http_server utility method, with tls_enabled as a boolean flag.
  • Rework a few type hints, attempting to make them easier to understand.

Relates

tests/utils.py Outdated Show resolved Hide resolved
tests/utils.py Outdated Show resolved Hide resolved
jayaddison and others added 2 commits March 20, 2024 10:25
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Copy link
Contributor

@danieleades danieleades left a comment

Choose a reason for hiding this comment

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

LGTM

@jayaddison
Copy link
Contributor Author

Thanks @danieleades!

tests/utils.py Outdated
@@ -1,17 +1,19 @@
from __future__ import annotations

import contextlib
__all__ = ["http_server"]

Copy link
Member

@picnixz picnixz Mar 20, 2024

Choose a reason for hiding this comment

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

I think there should be 1 line after and not two (but I'm not sure with the diff)

tests/utils.py Outdated Show resolved Hide resolved
Copy link
Member

@chrisjsewell chrisjsewell left a comment

Choose a reason for hiding this comment

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

a few minor nitpicks, but otherwise all good thanks

@jayaddison
Copy link
Contributor Author

Thanks @chrisjsewell!

@chrisjsewell
Copy link
Member

shall we merge this @jayaddison?

@jayaddison
Copy link
Contributor Author

@chrisjsewell yep, this is ready to merge from my perspective 👍

@chrisjsewell chrisjsewell merged commit b7f708d into sphinx-doc:master Mar 20, 2024
22 checks passed
@jayaddison
Copy link
Contributor Author

Thank you!

@jayaddison jayaddison deleted the refactor/test-utils-http-server-signatures branch March 20, 2024 23:32
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants