Docstring of phases displays phase descriptor
Maintainers usually reply within 1 day
Nobody has claimed this yet.
- #878 by @Minipada — closed without merging
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- documentation
Research direction
Run the provided OpenHTF example and inspect how the @htf.measures decorator changes hello_world.doc before Sphinx processes it. Trace the phase descriptor and documentation entry point, then verify that the generated documentation exposes the phase function's docstring rather than only the descriptor text.
Written by the indexing model from the issue text.
Description
I'm trying to generate a sphinx documentation of my apps but the only output I get from my phase documentation is the phase descriptor class.
This is what I'm running:
#!/usr/bin/env python
"""OPENHTF based motor control test"""
from __future__ import division, print_function
import openhtf as htf
@htf.measures(htf.Measurement('hello_world_measurement'))
def hello_world(test):
"""A hello world test phase."""
test.logger.info('Hello World!')
test.measurements.hello_world_measurement = 'Hello Again!'
if __name__ == '__main__':
print(hello_world.__doc__)
pass
This is the output:
Phase function and related information.
Attributes:
func: Function to be called (with TestApi as first argument).
options: PhaseOptions instance.
plugs: List of PhasePlug instances.
measurements: List of Measurement objects.
extra_kwargs: Keyword arguments that will be passed to the function.
code_info: Info about the source code of func.
I guess something is broken, do you know what it could be?
- Dominant language
- Python
- Stars
- 723
- Forks
- 239
- Avg merge
- 3h 17m
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from google/openhtf
-
PERCENT double declarationPossibly taken @Sanjays2402 claimed this 78 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 60/100
google/openhtf#1250 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 4/5 3-5 days Newbie friendliness 25/100
google/openhtf#1219 · 3 comments ·
Maintainers usually reply within 1 day
Similar issues
-
namespace operations
Difficulty 1/5 Under an hour Newbie friendliness 72/100
EclipseFdn/open-vsx.org#14043 ·
Maintainers usually reply within 1 day
-
netbox status: needs triage type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
netbox-community/netbox#23376 ·
Maintainers usually reply within 1 day
-
feedback simulation workshop
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
githubnext/gh-aw-workshop#4455 ·
Maintainers usually reply within 1 day
-
Triage 🩺
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
[BUG] Container scenario crashes without expected_recovery_time, kube DNS example uses retry_waitOpenneeds-triage
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
krkn-chaos/krkn#1627 · 1 comment ·
Maintainers usually reply within 1 day