[elbe-devel] [PATCH v2 0/6] Unittest doctests
Olivier Dion
dion at linutronix.de
Mon May 25 20:25:50 CEST 2020
This patch queues add doctest for shellhelper and filesystem modules.
Some tests are missing from filesystem because some methods are so
trivial that I don't think we need to test them (i.e. chmod). Other
methods are difficult to test because they are system dependant
(i.e. disk_usage).
Other tests might be add later on if necessary.
* Changes since v1
- Use elbepack.log.open_logging to control loggers for tests in
shellhelper.
- Remove temporary directory "/tmp/elbe-doctest" and use
elbepack.filesystem.TmpdirFilesystem instead.
- Make tests in filesystem that depend on "elbe-doctests" more
generic.
Olivier Dion (6):
tests test_efilesystem: Add copyright
tests test_doctest: Add unittest for doctests
shellhelper: Add doctests
shellhelper: Fix get_command_out()
tests doctests: Add filesystem doctests
filesystem: Add dodctests
elbepack/filesystem.py | 174 +++++++++++++++++++++++++++++
elbepack/shellhelper.py | 164 ++++++++++++++++++++++++++-
elbepack/tests/test_doctest.py | 17 +++
elbepack/tests/test_efilesystem.py | 5 +
4 files changed, 358 insertions(+), 2 deletions(-)
create mode 100644 elbepack/tests/test_doctest.py
--
2.26.2
More information about the elbe-devel
mailing list