ansible/test
Sviatoslav Sydorenko be28e98cf2
[backport][2.10][PR #70446] Refactor Python API examples and docs (#70850)
* Add boilerplate snippet into `examples/`

It is a partial backport of #70224

(partially cherry picked from commit 4816bb4f43)

* Refactor Python API examples and docs

PR #70446: it's a follow-up for #70445.

It includes a merge of `examples/scripts/uptime.py` and a similar
code snippet from `docs/docsite/rst/dev_guide/developing_api.rst`.

This patch also changes the docs RST file to include contents of
the example file instead of holding a copy of a similar code.

(cherry picked from commit 20bb915092)
2020-07-29 13:51:21 -07:00
..
ansible_test
integration Do not add connection vars to the output results (#70853) (#70855) 2020-07-23 19:48:45 -05:00
lib/ansible_test [stable-2.10] Cap pytest version to avoid relative import issue. 2020-07-28 17:14:30 -07:00
sanity [backport][2.10][PR #70446] Refactor Python API examples and docs (#70850) 2020-07-29 13:51:21 -07:00
support Deprecation revisited (#69926) 2020-06-09 15:21:19 -07:00
units reset logging to INFO (#70878) (#70881) 2020-07-24 15:47:57 -05:00
utils/shippable Remove temporary migration hack from CI scripts. 2020-06-16 11:25:39 -07:00