tripleo-ci/scripts/emit_releases_file
Jiri Stransky c6bc5f8ace Reduce unit testing changes required for emit_releases_file
When looking at recent edit of emit_releases_file.py it seems that the
amount of manual unit test changes required [1] is so high that it
might deter contributors and consume too much effort.

Much of the edited unit test data seems repetitive, so my rationale
here is that we can reduce the amount of data resulting in a small
loss of coverage but considerable reduction of required labor when
making emit_releases_file amendments.

The order of side effects for get_hash function was considered for the
test result, now we use a fixture that is backed up by a tuple to a
string dictionary to configure the mock, so the order is not important
anymore.

Co-Authored-By: Quique Llorente <ellorent@redhat.com>

[1] https://review.openstack.org/#/c/606996/7/scripts/emit_releases_file/test_release_name.py

Change-Id: Ie573813a4916aeb1bb15b5aa38dc2a732586e8c2
2018-11-05 09:07:43 +00:00
..
emit_releases_file.py Add standalone upgrade to emit release. 2018-10-24 00:18:40 +02:00
pytest.ini Add python script to dynamically compose releases 2018-05-16 11:47:27 +02:00
test_get_dlrn_hash.py Wire in get_dlrn_hash 2018-05-21 08:25:09 -04:00
test_release_file.py Add standalone upgrade to emit release. 2018-10-24 00:18:40 +02:00
test_release_name.py Reduce unit testing changes required for emit_releases_file 2018-11-05 09:07:43 +00:00
test_unsupported_upgrades.py Add standalone upgrade to emit release. 2018-10-24 00:18:40 +02:00
test_write_bash_script.py Add standalone upgrade to emit release. 2018-10-24 00:18:40 +02:00
test_yaml_parsing.py replace pep8 check with generic linters 2018-08-29 19:03:09 +01:00