pydoc is useful but it is not referenced from README so how do people know?
Bug #812845 reported by
Jonathan Lange
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python Fixtures |
Fix Released
|
Wishlist
|
Robert Collins |
Bug Description
The document at <http://
Isolate your code from environmental variables, delete them or set them to a new value.
>>> fixture = fixtures.
But it is not at all clear whether that isolates (how?), deletes or sets to a new value. Regardless of which it does, it's unclear how to achieve the other two without looking at the source code.
Related branches
description: | updated |
summary: |
- EnvironmentVariableFixture example is confusing + pydoc is useful but it is not referenced from README so how do people + know? |
Changed in python-fixtures: | |
milestone: | none → next |
assignee: | nobody → Robert Collins (lifeless) |
status: | Triaged → Fix Released |
To post a comment you must log in.
This is why pydoc says for me;
class EnvironmentVari ableFixture( fixtures. fixture. Fixture) ableFixture fixture. Fixture ableFixture.
| Isolate a specific environment variable.
|
| Method resolution order:
| EnvironmentVari
| fixtures.
| __builtin__.object
|
| Methods defined here:
|
| __init__(self, varname, newvalue=None)
| Create an EnvironmentVari
|
| :param varname: the name of the variable to isolate.
| :param newvalue: A value to set the variable to. If None, the variable
| will be deleted.
|
| During setup the variable will be deleted or assigned the requested
| value, and this will be restored in cleanUp.
|
That seems pretty clear to me. Was it unclear? Or did you go from 'README' -> source code without looking at the API docs ?