Commit Graph

2067 Commits

Author SHA1 Message Date
James Frost aa6f97d6cd
Add html_baseurl to sphinx conf.py (#12364) (#12396)
This is used to set the <link rel="canonical" href="X"> tag that points to the canonical version of the webpage. Including this indicates to search engines which version to include in their indexes, and should prevent older versions showing up.

Fixes #12363
2024-05-30 08:09:40 -03:00
Brylie Christopher Oxley 20f1c95be2
Change example to reference from within same page (#10189) 2022-08-11 08:30:09 -03:00
Tony Narlock 6956a00056 docs(monkeypatch): Fix autodoc reference links (#10013)
Close #10014
2022-06-02 08:36:46 -05:00
Piotr Dybowski 2476da4445
Further fixes in fixtures' examples 2021-10-08 15:45:23 +02:00
Piotr Dybowski c642e6d550
Fix example in fixture documentation (`sending_user`, `receiving_user`) (#9179) 2021-10-08 11:41:40 +03:00
Florian Bruhin 8f9779d43c Remove finished open training
(cherry picked from commit 1c1dcf27c8)
2021-09-09 22:32:13 +02:00
Bruno Oliveira 1569fac603 Fix CHANGELOG header 2021-08-29 11:09:45 -03:00
pytest bot a3599cacb5 Prepare release version 6.2.5 2021-08-29 14:05:45 +00:00
Ronny Pfannschmidt 69212d15fa Merge pull request #8425 from RonnyPfannschmidt/main-fixes
reconfigure everything for main
2021-08-26 18:07:13 -03:00
Bruno Oliveira 44d3282bb7 Merge pull request #9040 from nicoddemus/bump-pluggy 2021-08-26 14:56:00 -03:00
Florian Bruhin 477225c18a doc: Update trainings
(cherry picked from commit e643385399)
2021-08-19 18:55:52 +02:00
Thomas Güttler b0fb02297e
contact.rst: Added github discussions. 2021-07-22 10:28:53 +02:00
Brylie Christopher Oxley e47a352c49
Fix "external plugins" link (#8806) 2021-06-28 14:32:31 +02:00
Florian Bruhin 4eae23a633 doc: Add new open trainings
(cherry picked from commit 61336bb385)
2021-06-24 20:22:09 +02:00
Daniel Asztalos 82611bdc1e
Typo fixed 2021-06-14 15:48:06 +02:00
Bruno Oliveira 3293758545 Merge pull request #8754 from nicoddemus/fix-deprecation-docs 2021-06-12 13:45:50 -03:00
Jason Haugen 74495a2b7f
Fix typo in fixture.rst
Example referenced the wrong function name
2021-06-09 13:48:16 -05:00
Florian Bruhin a5e67a26b0
Switch to irc.libera.chat (#8723)
(cherry picked from commit 06ff9c3a97)
2021-06-01 18:04:47 +02:00
Anthony Sottile 8e0b08d5da
Merge pull request #8702 from The-Compiler/remove-training-2-6.2.x
[6.2.x] doc: Remove training sidebar
2021-05-28 07:59:34 -07:00
MapleCCC 5ad0d1acb9
Update index.rst (#8708) 2021-05-27 21:44:33 +02:00
Florian Bruhin 89b6b2ee2b doc: Remove training sidebar
(cherry picked from commit 54e4aad88f)
2021-05-26 14:15:58 +02:00
pytest bot 017dd1ccd6 Prepare release version 6.2.4 2021-05-04 08:33:43 -07:00
Christian Maurer 69ea076d55
Update fixture.rst
Availability was misspelled.  It was `availabiility`
2021-04-28 07:01:45 -05:00
Florian Bruhin 40cb2f5b54
Backport training update (#8557) 2021-04-15 20:02:50 +02:00
pytest bot 3a2fd96305 Prepare release version 6.2.3 2021-04-03 21:41:18 +00:00
Bruno Oliveira 56e4392444 Merge pull request #8280 from xuhdev/module
Doc: Move the module declaration to index.rst
2021-01-27 09:07:33 -03:00
pytest bot b9c98762f5 Prepare release version 6.2.2 2021-01-25 12:30:53 +00:00
Bruno Oliveira 14e0c3e105
Merge pull request #8225 from The-Compiler/training-update (#8226)
doc: Add note about training early bird discount
2021-01-05 20:49:50 +01:00
Bruno Oliveira 99fe887d7c Merge pull request #8220 from xuhdev/module-doc
DOC: Mark pytest module
2021-01-05 13:26:19 -03:00
Chris NeJame da82e1853c Clarify fixture execution order and provide visual aids (#7381)
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
Co-authored-by: Ran Benita <ran@unusedvar.com>
2020-12-16 13:54:52 -03:00
pytest bot d3971c30f4 Prepare release version 6.2.1 2020-12-15 13:06:34 +00:00
pytest bot e7073afe6e Prepare release version 6.2.0 2020-12-12 22:45:09 +02:00
Ran Benita 0feeddf8ed doc: temporary workaround for pytest-pygments lexing error
pytest-pygments doesn't yet recognize the skip reason in summary line
added recently. Workaround it until we get to updating it.
2020-12-12 22:18:23 +02:00
Bruno Oliveira 68a0f22eee
Merge pull request #8100 from nicoddemus/doctest-alternatives
List pytest-doctestplus in doctest docs
2020-12-05 17:42:09 -03:00
Ran Benita e398c93884
Merge pull request #8055 from bluetech/unraisable
Add unraisableexception and threadexception plugins
2020-12-05 21:52:17 +02:00
Ran Benita 760a73c08c
Merge pull request #8017 from bluetech/typing-public-fixtures
Export types of builtin fixtures for type annotations
2020-12-05 21:51:20 +02:00
Bruno Oliveira 4fc20c8d28 List pytest-doctestplus in doctest docs
As per https://github.com/pytest-dev/pytest/discussions/8088
2020-12-04 15:24:56 -03:00
Shubham Adep d1cb9de211
Custom multiple marker execution order (#8065)
* Custom multiple marker execution order

https://github.com/pytest-dev/pytest/issues/8020 issue stated that ordering of multiple custom markers is from inside - out. I have added example for the same in the documentation. Please let me know for further changes / concerns.

* remove trailing spaces

The last commit was failing due to extra spaces

* Ran tox tests locally to debug white space trimming issues

* Resolve: ERROR:   docs: commands failed for tox -e docs

* Update doc/en/reference.rst

Committed PR suggestions.

Co-authored-by: Florian Bruhin <me@the-compiler.org>

* Added reference to Node.iter_markers_with_node in documentation

* Add myself to Authors

Co-authored-by: Shubham <shubham.adep@wsu.edu>
Co-authored-by: Florian Bruhin <me@the-compiler.org>
2020-11-30 16:48:08 +01:00
Prakhar Gurunani 3405c7e6a8
Add more info about skipping doctests (#8080)
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2020-11-28 12:47:02 -03:00
Ran Benita d50df85e26 Add unraisableexception and threadexception plugins 2020-11-21 21:11:48 +02:00
Maximilian Cosmo Sitter 0cef530d10
Add str() support to LineMatcher (#8050) 2020-11-21 20:45:20 +02:00
Tim Hoffmann afd53ede6f
Link mentioned functions instead of using literals (#8045) 2020-11-19 15:44:59 +01:00
Florian Bruhin c6ac618baf Fix nose documentation
Follow-up to #8048 which seems to have been merged without the suggested changes.
2020-11-19 13:54:40 +01:00
mickeypash ce825ed16c Add small section on migrating from nose to pytest
The section currently features the nose2pytest tool with plans to expand
on some of the common gotchas when performing such migrations.
2020-11-19 08:50:11 -03:00
Ran Benita f1e6fdcddb Export types of builtin fixture for type annotations
In order to allow users to type annotate fixtures they request, the
types need to be imported from the `pytest` namespace. They are/were
always available to import from the `_pytest` namespace, but that is
not guaranteed to be stable.

These types are only exported for the purpose of typing. Specifically,
the following are *not* public:

- Construction (`__init__`)
- Subclassing
- staticmethods and classmethods

We try to combat them being used anyway by:

- Marking the classes as `@final` when possible (already done).

- Not documenting private stuff in the API Reference.

- Using `_`-prefixed names or marking as `:meta private:` for private
  stuff.

- Adding a keyword-only `_ispytest=False` to private constructors,
  warning if False, and changing pytest itself to pass True. In the
  future it will (hopefully) become a hard error.

Hopefully that will be enough.
2020-11-13 11:25:09 +02:00
Adam Johnson 39b2706f6a Add 'node_modules' to norecursedirs
Fixes #8023.
2020-11-11 01:52:18 +00:00
Ran Benita e986d84466
Merge pull request #8006 from bluetech/export-MonkeyPatch
Export MonkeyPatch as pytest.MonkeyPatch
2020-11-09 11:45:38 +02:00
Ran Benita 6f13d1b03b Export MonkeyPatch as pytest.MonkeyPatch
We want to export `pytest.MonkeyPatch` for the purpose of
type-annotating the `monkeypatch` fixture. For other fixtures we export
in this way, we also make direct construction of them (e.g.
`MonkeyPatch()`) private. But unlike the others, `MonkeyPatch` is also
widely used directly already, mostly because the `monkeypatch` fixture
only works in `function` scope (issue #363), but also in other cases. So
making it private will be annoying and we don't offer a decent
replacement yet.

So, let's just make direct construction public & documented.
2020-11-09 11:28:15 +02:00
Hugo Martins 5b2e5e8a40
Improve summary stats when using '--collect-only' (#7875)
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2020-11-08 11:45:10 -03:00
frankgerhardt 9bc633064b
Capitalize headlines (#8008) 2020-11-07 22:44:04 -03:00