openpyxl-redmine workflow unit tests

Overview

Workflow unit tests exercise functionality without interacting with Table of Redmine representations.

One test, src/tests/unit/test_workflow.py is operational and tests:

  • test_day_diff: verifies correct workday counting
  • test_replace_between: verifies correct text insertion between end markers

unit test automation

The PASSWORD environmental of the shell executing tests must be set to the API key.

test_workflow

Test output:

$ python -m unittest -v -f src/tests/unit/test_workflow.py
test_day_diff (src.tests.unit.test_workflow.WorkflowTest) ... ok
test_replace_between (src.tests.unit.test_workflow.WorkflowTest) ... ok

----------------------------------------------------------------------
Ran 2 tests in 0.000s

OK