summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-05-08 15:34:45 -0600
committerHeinrich Schuchardt <[email protected]>2025-05-11 12:52:57 +0200
commit02e5d344a0d75a4f05682b3438354748dc83d941 (patch)
tree58272fe3d44e671f2d85f6eb529d5722d6c8e8d5
parente1076c6619194ddd82f8e364d8cafd907da40616 (diff)
doc: pytest: Document the test_button test
Add this test to the documentation. No changes to the test itself were required. Signed-off-by: Tom Rini <[email protected]> Reviewed-by: Simon Glass <[email protected]>
-rw-r--r--doc/develop/pytest/index.rst1
-rw-r--r--doc/develop/pytest/test_button.rst8
-rw-r--r--test/py/tests/test_button.py2
3 files changed, 11 insertions, 0 deletions
diff --git a/doc/develop/pytest/index.rst b/doc/develop/pytest/index.rst
index 4d949cfd1d2..0a7c1b21a24 100644
--- a/doc/develop/pytest/index.rst
+++ b/doc/develop/pytest/index.rst
@@ -21,6 +21,7 @@ Individual tests
test_bind
test_bootmenu
test_bootstage
+ test_button
test_efi_loader
test_net
test_net_boot
diff --git a/doc/develop/pytest/test_button.rst b/doc/develop/pytest/test_button.rst
new file mode 100644
index 00000000000..4e5a29f20a7
--- /dev/null
+++ b/doc/develop/pytest/test_button.rst
@@ -0,0 +1,8 @@
+test_button
+===========
+
+.. automodule:: test_button
+ :synopsis:
+ :member-order: bysource
+ :members:
+ :undoc-members:
diff --git a/test/py/tests/test_button.py b/test/py/tests/test_button.py
index f0d85be896d..f3f68169e14 100644
--- a/test/py/tests/test_button.py
+++ b/test/py/tests/test_button.py
@@ -1,5 +1,7 @@
# SPDX-License-Identifier: GPL-2.0+
+"""Tests for the button command"""
+
import pytest
@pytest.mark.boardspec('sandbox')