-
Will add excel test code and samples later, no need to have separate folders for different file types.
-
This is in preparation of adding new function process_xlsx
-
…re process_file is called
-
This is based on the OpenXML specification (ISO 29500-1:2016 / ECMA-376)
-
Msodde more tests
-
Minor msodde fixes
-
- fix some whitespace and docs - replace bare-except - omit empty dde links in output
-
With this change we replace the relative import. Also use with-statement to open test file, so file is always closed after reading (python3 unittest issued a warning).
-
This is the case e.g. if piping the output of msodde.py to file or other program (e.g. grep) on a linux shell. In that case sys.stdout (i.e. print) can only handle ascii, which is a problem when printing unicode dde links.
-
Want to use the OutputCapture in another unit test. There will probably be more such test helpers over time that need to be imported from different unit tests.
-
The old version assumed that main() is only called once per import. When called multiple times from other scripts, the json output lacked a leading '['.
-
This simplifies unit test creation a lot
-
Log output is not json-compatible, so warn if -ldebug -j is given to msodde. (Could create a logger formatter that always creates json-compatible output but that is probably overkill right now) Replace old commented debug-prints with log.debug() or remove them.
-
Doc in msodde (and json output)
-
These tests capture stdout to check whether msodde finds dde links correctly
-
This should help avoiding some common mistakes when adding new unit tests