Skip to content

Commit 4872903

Browse files
amaslennphilpep
authored andcommitted
Add missing Environment doc section
Fixes #736.
1 parent b54a79e commit 4872903

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

doc/source/modules.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ Docker
145145
:members:
146146

147147

148+
Environment
149+
~~~~~~
150+
151+
.. autoclass:: testinfra.modules.environment.Environment(name)
152+
:members:
153+
148154
File
149155
~~~~
150156

testinfra/modules/environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Environment(InstanceModule):
1818
1919
Example:
2020
21-
>>> host.environment()
21+
>>> host.environment()
2222
{
2323
"EDITOR": "vim",
2424
"SHELL": "/bin/bash",

0 commit comments

Comments
 (0)