doc: pytest: Document the test_bootstage test
authorTom Rini <trini@konsulko.com>
Wed, 7 May 2025 23:23:01 +0000 (17:23 -0600)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 11 May 2025 10:52:56 +0000 (12:52 +0200)
commit58b2f0895bcbe24aad86c14813911f04b35cc5fb
tree1089cfdb63f110e8f11db5bbd85e98c22eb3106c
parent45d325ba0993f60b7b81bae1efde0bc324d49400
doc: pytest: Document the test_bootstage test

Add this test to the documentation. We need to move the import to follow
the main comment so that it renders correctly, and add a code-block
annotation to the example and indent it correctly. Next, neither of the
functions had comments themselves, so document them now.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
doc/develop/pytest/index.rst
doc/develop/pytest/test_bootstage.rst [new file with mode: 0644]
test/py/tests/test_bootstage.py