Adam Turner
d03156e078
Format `tests/
` ( #12760 )
2024-08-11 14:58:56 +01:00
Adam Turner
a4102a7507
Specify encoding to avoid EncodingWarning
2024-07-29 18:21:01 +01:00
Adam Turner
b511537597
`_StrPath
is dead; long live
_StrPath
` ( #12690 )
2024-07-26 17:33:55 +01:00
Adam Turner
1f2891530d
Use `app.status
and
app.warning
` in tests ( #12663 )
2024-07-23 15:35:55 +01:00
Adam Turner
de15d61a46
Use pathlib in `sphinx.project
`
2024-07-23 04:52:32 +01:00
danieleades
58d4224227
Disallow untyped calls ( #12640 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-07-23 02:22:58 +01:00
James Addison
cc08854bc2
linkcheck: Update configuration defaults for Sphinx 8.0 ( #12630 )
...
- Links that respond with HTTP 401 (unauthorized) responses are now considered ``broken`` by default.
- Timeouts that occur when checking a link are now reported with a distinct `timeout` status code, instead of the previous ``broken``.
- The previous behaviours are still available and can be configured on an opt-in basis per-project using ``conf.py``.
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-07-20 20:41:22 +01:00
James Addison
35e7bfc347
linkcheck: Ignore URLs that respond with non-Unicode content ( #12197 )
2024-07-14 03:48:38 +01:00
James Addison
6b237d9a70
[linkcheck] Allow integer for linkcheck_rate_limit_timeout
( #12470 )
...
Eliminate type-related warnings when users configure a valid integer value for the `linkcheck_rate_limit_timeout` config setting.
Co-authored-by: Chris Sewell <chrisj_sewell@hotmail.com>
2024-06-24 17:26:24 +00:00
Bénédikt Tran
581bcdd140
[config] correctly synchronize `root_doc
and
master_doc
` ( #12417 )
2024-06-17 18:04:33 +02:00
James Addison
9467bf7849
[typehints] tests: enable mypy for linkcheck builder tests. ( #12160 )
2024-05-15 04:13:57 +02:00
Adam Turner
173b5912e5
linkcheck: Fix test to use dynamic port numbers
2024-04-24 19:36:36 +01:00
James Addison
2008aa8c78
linkcheck: Store the original (unquoted) anchor ( #12206 )
2024-04-24 18:07:31 +00:00
James Addison
532ad0306e
linkcheck: Make the new 'timeout' status opt-in ( #12023 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-04-12 23:18:22 +01:00
James Addison
df3cde65fa
[tests] linkcheck: bind each test HTTP server to a unique port per-testcase ( #12126 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-04-04 11:25:53 +02:00
James Addison
0ef96a7d52
[tests] fix flakiness of `test_linkcheck_exclude_documents
` ( #12189 )
2024-03-25 11:48:03 +01:00
Bénédikt Tran
f24eef7b6b
[cleanup] deprecate `sphinx.testing.util.strip_escseq
in favor of
sphinx.util.console.strip_colors
` ( #12186 )
2024-03-24 00:43:54 +01:00
danieleades
6c92c5c0f3
[lint] bump ruff version ( #12170 )
...
Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-03-22 10:33:42 +01:00
James Addison
d7c94d1696
[cleanup] test utils: more concise BaseHTTPRequestHandler references. ( #12158 )
2024-03-21 15:08:49 +01:00
James Addison
b7f708dc63
[tests] utils: refactor type-hint signatures. ( #12144 )
...
Consolidate the provision of a single `http_server` utility method, with `tls_enabled` as a boolean flag,
and rework type annotations to make them more understandable.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Chris Sewell <chrisj_sewell@hotmail.com>
2024-03-20 23:13:41 +01:00
James Addison
7894b5a269
[tests] linkcheck: add test coverage for behaviour of a locally-existing file. ( #12128 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-03-18 18:36:22 +01:00
danieleades
4f7318767c
[lint] extend FURB lints ( #12088 )
2024-03-17 12:06:39 +01:00
Bénédikt Tran
dbb4da375f
[tests] correctly intercept or suppress warnings in tests ( #12085 )
2024-03-14 11:45:45 +01:00
Adam Turner
462404cb25
Organise tests into directories
2024-01-17 03:56:35 +00:00