Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nodoc to exclude test class from topic list #457

Merged
merged 1 commit into from Dec 14, 2017

Conversation

AdamWill
Copy link
Contributor

It's been documented for a long time that you can set the class
attribute nodoc to True for a test class, to exclude that
class from appearing in the topics.rst file produced by
make_topics_doc, which is publicly published as the definitive
list of message topics. However, this has never actually worked
properly, and test classes with nodoc = True do appear in
the list. This fixes it, by checking the attribute correctly.

Signed-off-by: Adam Williamson awilliam@redhat.com

It's been documented for a long time that you can set the class
attribute `nodoc` to `True` for a test class, to exclude that
class from appearing in the `topics.rst` file produced by
`make_topics_doc`, which is publicly published as the definitive
list of message topics. However, this has never actually worked
properly, and test classes with `nodoc = True` *do* appear in
the list. This fixes it, by checking the attribute correctly.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
@AdamWill
Copy link
Contributor Author

@ralphbean @pypingou

Copy link
Contributor

@ralphbean ralphbean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes!

@pypingou
Copy link
Member

Cool, thanks!

@pypingou pypingou merged commit ec4c457 into fedora-infra:develop Dec 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants