Skip to content

Commit

Permalink
Add missing Environment doc section
Browse files Browse the repository at this point in the history
Fixes #736.
  • Loading branch information
amaslenn authored and philpep committed Nov 13, 2023
1 parent 1cb19cc commit 8eb5bc9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions doc/source/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ Docker
:members:


Environment
~~~~~~

.. autoclass:: testinfra.modules.environment.Environment(name)
:members:

File
~~~~

Expand Down
2 changes: 1 addition & 1 deletion testinfra/modules/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Environment(InstanceModule):
Example:
>>> host.environment()
>>> host.environment()
{
"EDITOR": "vim",
"SHELL": "/bin/bash",
Expand Down

0 comments on commit 8eb5bc9

Please sign in to comment.