Add unit tests for version script 65/4065/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Sun, 5 Mar 2017 04:20:39 +0000 (23:20 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Sun, 5 Mar 2017 04:39:52 +0000 (23:39 -0500)
commita814cf4df9a98be041932250fa97cdaf6b874292
tree6000129b8a85eb83d826056a4936d0bd6f71070e
parentddf18c90042db24e1cf983d79786d984a46e4ff2
Add unit tests for version script

Adds unit tests for the version script to ensure it works in the use
cases OpenDaylight requires the script for. Unit Tests run against
Python 3 as we are only supporting Python 3 for lftools at the moment.

- Fix version script not running 'release' command
- Add pytest
- Test version script for 3 use cases:
    1) Version bump for release
    2) Version bump by x.y.(z+1) post release
    3) Version bump by x.(y+1).z

Change-Id: Ib36d9a84e2769863083400c434e1539b302869a8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
.gitignore
setup.py
shell/version
tests/fixtures/pom.xml [new file with mode: 0644]
tests/fixtures/pom.xml.expected-bump [new file with mode: 0644]
tests/fixtures/pom.xml.expected-release [new file with mode: 0644]
tests/fixtures/pom.xml.expected-release-bump [new file with mode: 0644]
tests/test_version.py [new file with mode: 0644]
tox.ini