ansible / mazer

Experimental Ansible Galaxy Content Manager
GNU General Public License v3.0
114 stars 18 forks source link

unit test coverage of publish codepaths is low (~20%) #212

Closed alikins closed 5 years ago

alikins commented 5 years ago

Bug Report

The unit test coverage of publish related code paths is pretty low: ansible_galaxy/actions/publish.py: 22% ansible_galaxy/multipart_form.py: 18% ansible_galaxy.reset_api.GalaxyApi.publish_file() has no coverage

MAZER VERSION
name = mazer
version = 0.4.0
config_file = /home/adrian/.ansible/mazer.yml
uname = Linux, newswoop, 4.18.16-100.fc27.x86_64, #1 SMP Sun Oct 21 09:33:00 UTC 2018, x86_64
executable_location = /home/adrian/venvs/galaxy-cli-py3-2/bin/mazer
python_version = 3.6.6 (default, Jul 19 2018, 16:29:00) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]
python_executable = /home/adrian/venvs/galaxy-cli-py3-2/bin/python
EXPECTED RESULTS

More unit test coverage, maybe somewhere between 70% and 100%

alikins commented 5 years ago

https://github.com/ansible/mazer/pull/237 resolves this.