Skip to content

unittest things to be doc'd #35113

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

Closed
rsalz mannequin opened this issue Sep 5, 2001 · 4 comments
Closed

unittest things to be doc'd #35113

rsalz mannequin opened this issue Sep 5, 2001 · 4 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@rsalz
Copy link
Mannequin

rsalz mannequin commented Sep 5, 2001

BPO 458771
Nosy @freddrake

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/freddrake'
closed_at = <Date 2001-09-06.19:11:15.000>
created_at = <Date 2001-09-05.15:49:41.000>
labels = ['docs']
title = "unittest things to be doc'd"
updated_at = <Date 2001-09-06.19:11:15.000>
user = 'https://bugs.python.org/rsalz'

bugs.python.org fields:

activity = <Date 2001-09-06.19:11:15.000>
actor = 'fdrake'
assignee = 'fdrake'
closed = True
closed_date = None
closer = None
components = ['Documentation']
creation = <Date 2001-09-05.15:49:41.000>
creator = 'rsalz'
dependencies = []
files = []
hgrepos = []
issue_num = 458771
keywords = []
message_count = 4.0
messages = ['6364', '6365', '6366', '6367']
nosy_count = 2.0
nosy_names = ['fdrake', 'rsalz']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue458771'
versions = []

@rsalz
Copy link
Mannequin Author

rsalz mannequin commented Sep 5, 2001

We're starting to use the unittest module, and am
noticing some things that need documentation or doc
fixes.

TestSuite class: the run() method requires the result
object; unlike TestCase, it's not optional.

TestSuite objects "prefer" to be invoked by a test
runner (according to comments in the source); the run()
method of the TextTestRunner should be documented. If
not, then TestSuite.__call__ needs to be changed to
make the result object optional.

I don't think the docs explain using the first line of
the docstring as the "short description" for tests.

TestLoader.loadTestFromName needs to define what a
"string specifier" is, as dis ltnNames. :)

@rsalz rsalz mannequin closed this as completed Sep 5, 2001
@rsalz rsalz mannequin assigned freddrake Sep 5, 2001
@rsalz rsalz mannequin added the docs Documentation in the Doc dir label Sep 5, 2001
@rsalz rsalz mannequin closed this as completed Sep 5, 2001
@rsalz rsalz mannequin assigned freddrake Sep 5, 2001
@rsalz rsalz mannequin added the docs Documentation in the Doc dir label Sep 5, 2001
@freddrake
Copy link
Member

Logged In: YES
user_id=3066

The use of the docstring as a source for the short
description is explained in the docs for
TestCase.shortDescription().

I think I've addressed your other comments in
Doc/lib/libunittest.tex revision 1.6.

@rsalz
Copy link
Mannequin Author

rsalz mannequin commented Sep 6, 2001

Logged In: YES
user_id=36737

Looks good, except now you need to document makeSuite, in
particular that the 2nd string argument means "all functions
that start with this prefix are tests" :)

@freddrake
Copy link
Member

Logged In: YES
user_id=3066

makeSuite() should not be documented; it was marked obsolete
in the PyUnit sourcecode before it was accepted into the
standard library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant