rhevm-qe-automation / pytest_jira

py.test plugin to integrate with JIRA
GNU General Public License v2.0
29 stars 25 forks source link

Use dict.get() in get_issue or missing field will raise KeyError #76

Closed mjuuti closed 7 years ago

mjuuti commented 7 years ago

_affected_version, _affected_components and fixed_in_version do use .get() with existence check already. Create dictionary with .get() as well instead of key indices.

codecov-io commented 7 years ago

Codecov Report

Merging #76 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #76   +/-   ##
=======================================
  Coverage   98.27%   98.27%           
=======================================
  Files           1        1           
  Lines         174      174           
=======================================
  Hits          171      171           
  Misses          3        3
Impacted Files Coverage Δ
pytest_jira.py 98.27% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 477ee55...f50eca9. Read the comment docs.

lukas-bednar commented 7 years ago

Thank you for your PR!